/* ==========================================================================
   GREICY DIAS - LINKTREE LUXURY GOLD & BLACK THEME
   ========================================================================== */

:root {
    --bg-dark: #090a0c;
    --bg-card: rgba(18, 20, 26, 0.85);
    --bg-card-hover: rgba(28, 31, 40, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* Gold Metallic Palette */
    --gold-1: #FCE08F;
    --gold-2: #DFB76C;
    --gold-3: #C5A059;
    --gold-4: #9A7533;
    --gold-dark: #58411B;

    --gold-gradient: linear-gradient(135deg, #FCE08F 0%, #DFB76C 35%, #C5A059 70%, #9A7533 100%);
    --gold-gradient-hover: linear-gradient(135deg, #FFF0C2 0%, #FCE08F 35%, #DFB76C 70%, #C5A059 100%);
    --gold-border: rgba(223, 183, 108, 0.35);
    --gold-border-glow: rgba(223, 183, 108, 0.7);
    --gold-glow: 0 0 25px rgba(223, 183, 108, 0.25);

    --text-primary: #F7F7F8;
    --text-secondary: #A1A1AA;
    --text-gold: #E5C378;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Canvas background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Wrapper */
.main-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top Navigation Controls */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 4px 8px;
}

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    color: var(--gold-2);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    font-size: 1rem;
}

.icon-btn:hover {
    background: rgba(223, 183, 108, 0.15);
    border-color: var(--gold-2);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 183, 108, 0.25);
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--gold-glow);
    position: relative;
}

.cover-image-container {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 20%, var(--bg-card) 100%);
}

/* Avatar */
.avatar-container {
    position: relative;
    margin-top: -60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-ring {
    width: 114px;
    height: 114px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gold-gradient);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(223, 183, 108, 0.3);
    animation: goldPulse 4s infinite alternate;
}

@keyframes goldPulse {
    0% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(223, 183, 108, 0.2); }
    100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(223, 183, 108, 0.5); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0d0e12;
}

.badge-verified {
    position: absolute;
    bottom: 2px;
    margin-left: 70px;
    background: var(--gold-gradient);
    color: #0b0c10;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid #0d0e12;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Profile Info */
.profile-info {
    padding: 16px 24px 24px;
    text-align: center;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gold-sparkle {
    font-size: 1.2rem;
}

.profile-title {
    color: var(--text-gold);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.crp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

.profile-bio {
    font-size: 0.92rem;
    color: #D1D5DB;
    margin-top: 14px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
}

.gold-highlight {
    color: var(--gold-1);
    font-weight: 600;
    font-style: normal;
}

.stats-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(223, 183, 108, 0.08);
    border: 1px solid rgba(223, 183, 108, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gold-icon {
    color: var(--gold-2);
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Link Cards */
.link-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-border-glow);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(223, 183, 108, 0.15);
}

/* Highlight Card */
.highlight-card {
    background: linear-gradient(135deg, rgba(223, 183, 108, 0.15) 0%, rgba(18, 20, 26, 0.9) 100%);
    border: 1.5px solid var(--gold-2);
    box-shadow: 0 8px 25px rgba(223, 183, 108, 0.18);
}

.highlight-card:hover {
    background: linear-gradient(135deg, rgba(223, 183, 108, 0.25) 0%, rgba(28, 31, 40, 0.95) 100%);
    border-color: var(--gold-1);
    box-shadow: 0 12px 30px rgba(223, 183, 108, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.6s;
}

.highlight-card:hover .card-glow {
    left: 140%;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(223, 183, 108, 0.12);
    border: 1px solid rgba(223, 183, 108, 0.3);
    color: var(--gold-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.highlight-card .card-icon {
    background: var(--gold-gradient);
    color: #0b0c10;
    border: none;
}

.whatsapp-icon {
    color: #25D366;
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.25);
}

.whatsapp-card:hover .whatsapp-icon {
    background: #25D366;
    color: #0b0c10;
}

.link-card:hover .card-icon {
    transform: scale(1.1);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold-1);
    font-weight: 700;
    margin-bottom: 2px;
}

.card-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #FFF;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.card-arrow {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.link-card:hover .card-arrow {
    color: var(--gold-1);
    transform: translateX(4px);
}

/* Quote Section */
.quote-section {
    margin-top: 6px;
}

.quote-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(223, 183, 108, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 1.5rem;
    color: rgba(223, 183, 108, 0.3);
    margin-bottom: 8px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: #E2E8F0;
    line-height: 1.4;
}

.quote-author {
    display: block;
    font-size: 0.8rem;
    color: var(--gold-2);
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Social Bar */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold-gradient);
    color: #0b0c10;
    border-color: transparent;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(223, 183, 108, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 10px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gold-outline-btn {
    background: rgba(223, 183, 108, 0.06);
    border: 1px solid var(--gold-2);
    color: var(--gold-1);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.gold-outline-btn:hover {
    background: var(--gold-gradient);
    color: #0b0c10;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 183, 108, 0.35);
}

.footer-copy {
    margin-top: 4px;
}

.footer-sub {
    font-size: 0.72rem;
    opacity: 0.7;
    margin-top: -8px;
}

/* Discrete Lock Button for Admin Access */
.discrete-lock-btn {
    background: rgba(223, 183, 108, 0.08);
    border: 1px solid rgba(223, 183, 108, 0.2);
    color: var(--gold-2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 6px;
}

.discrete-lock-btn:hover {
    background: var(--gold-gradient);
    color: #0b0c10;
    border-color: transparent;
    transform: scale(1.12);
    box-shadow: 0 4px 15px rgba(223, 183, 108, 0.3);
}

/* Styled Gold Input for Password */
.gold-input {
    width: 100%;
    background: #090a0c !important;
    border: 1.5px solid var(--gold-2) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 18px !important;
    color: #FFFFFF !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(223, 183, 108, 0.15) !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

.gold-input:focus {
    border-color: var(--gold-1) !important;
    box-shadow: 0 0 20px rgba(252, 224, 143, 0.35) !important;
}

.gold-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.password-error {
    color: #F87171;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 20px;
    text-align: center;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #111319;
    border: 1px solid var(--gold-2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(223, 183, 108, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    z-index: 100000;
}

.modal-card-large {
    max-width: 540px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.modal-close:hover {
    color: var(--gold-1);
}

.modal-header {
    margin-bottom: 18px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: #FFF;
}

.modal-title-gold {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-1) !important;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.modal-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(223, 183, 108, 0.12);
    border: 1px solid rgba(223, 183, 108, 0.3);
    color: var(--gold-2);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.modal-body-scrollable {
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #D1D5DB;
    text-align: justify;
}

/* Custom Scrollbar for Modal Body */
.modal-body-scrollable::-webkit-scrollbar {
    width: 5px;
}
.modal-body-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.modal-body-scrollable::-webkit-scrollbar-thumb {
    background: var(--gold-3);
    border-radius: 4px;
}

.modal-footer-action {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* QR Code Modal styling */
.text-center {
    text-align: center;
}

.qr-container {
    background: #FFF;
    padding: 16px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 18px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.qr-container img {
    width: 180px;
    height: 180px;
    display: block;
}

.qr-url {
    font-size: 0.85rem;
    color: var(--gold-1);
    font-weight: 600;
    margin-bottom: 16px;
}

.gold-btn {
    background: var(--gold-gradient);
    color: #0b0c10;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.gold-btn:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 183, 108, 0.4);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gold-gradient);
    color: #0b0c10;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }

    .link-card {
        padding: 14px 16px;
    }

    .modal-card-large {
        max-height: 92vh;
        padding: 22px 18px;
    }
}
