/* ═══════════════════════════════════════════════════════════
   INVESTA — Design System
   Paleta: Dorado · Negro · Marrón · Blanco
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
    --gold:          #C9A84C;
    --gold-light:    #E8C97A;
    --gold-dark:     #8B6914;
    --gold-glow:     rgba(201,168,76,0.2);
    --gold-glow-md:  rgba(201,168,76,0.4);
    --black:         #080808;
    --dark:          #111111;
    --dark-2:        #191919;
    --dark-3:        #222222;
    --dark-card:     #161616;
    --brown:         #3D2B1F;
    --brown-light:   #5C3D2A;
    --white:         #F5F0E8;
    --white-soft:    #C8C0B0;
    --white-dim:     #7A7060;
    --danger:        #E05C5C;
    --success:       #4CAF7D;
    --sidebar-w:     260px;
    --navbar-h:      68px;
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --trans:         all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
    --shadow-gold:   0 4px 24px rgba(201,168,76,0.15);
    --shadow-gold-lg:0 8px 48px rgba(201,168,76,0.25);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
p  { color: var(--white-soft); }
.text-gold    { color: var(--gold); }
.text-white   { color: var(--white); }
.text-dim     { color: var(--white-dim); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.font-serif   { font-family: 'Cormorant Garamond', serif; }

/* ─── Layout ─────────────────────────────────────────────── */
.layout-auth {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: var(--sidebar-w);
    background: var(--dark);
    border-right: 1px solid rgba(201,168,76,0.12);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brown) transparent;
}
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    flex: 1;
    background: var(--black);
}
.navbar {
    height: var(--navbar-h);
    background: rgba(17,17,17,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.page-content {
    padding: 2rem;
    max-width: 1400px;
}

/* ─── Sidebar Logo ──────────────────────────────────────── */
.sidebar-logo {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--black);
    font-weight: 700;
    box-shadow: 0 4px 16px var(--gold-glow-md);
    flex-shrink: 0;
}
.sidebar-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}
.sidebar-logo-sub {
    font-size: 0.65rem;
    color: var(--white-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: -4px;
}

/* ─── Sidebar Nav ─────────────────────────────────────────── */
.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}
.sidebar-section-label {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-top: 0.5rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--white-soft);
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--trans);
    position: relative;
}
.sidebar-link:hover {
    background: rgba(201,168,76,0.06);
    color: var(--white);
    border-left-color: rgba(201,168,76,0.3);
}
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(201,168,76,0.12), transparent);
    color: var(--gold);
    border-left-color: var(--gold);
    font-weight: 600;
}
.sidebar-link .icon {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.sidebar-link .badge-count {
    margin-left: auto;
    background: var(--gold);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* ─── Sidebar Footer ─────────────────────────────────────── */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(201,168,76,0.1);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--dark-2);
    cursor: pointer;
    transition: var(--trans);
}
.sidebar-user:hover { background: var(--dark-3); }
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    font-size: 0.68rem;
    color: var(--gold);
    text-transform: capitalize;
}

/* ─── Navbar ──────────────────────────────────────────────── */
.navbar-left { display: flex; align-items: center; gap: 1rem; }
.navbar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.navbar-icon-btn {
    width: 38px; height: 38px;
    background: var(--dark-2);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white-soft);
    font-size: 1rem;
    transition: var(--trans);
    position: relative;
}
.navbar-icon-btn:hover {
    background: var(--dark-3);
    color: var(--gold);
    border-color: rgba(201,168,76,0.3);
}
.navbar-icon-btn .notif-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 16px; height: 16px;
    background: var(--gold);
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--black);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--dark);
}
.navbar-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: var(--dark-2);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--trans);
}
.navbar-profile:hover { border-color: rgba(201,168,76,0.4); background: var(--dark-3); }
.navbar-profile-img {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold);
}
.navbar-profile-name { font-size: 0.8rem; font-weight: 600; color: var(--white); }
.navbar-profile-role { font-size: 0.65rem; color: var(--gold); text-transform: capitalize; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    letter-spacing: 0.02em;
    border: none;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 6px 24px var(--gold-glow-md);
    transform: translateY(-1px);
    color: var(--black);
}
.btn-outline-gold {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}
.btn-outline-gold:hover {
    background: var(--gold-glow);
    color: var(--gold-light);
    transform: translateY(-1px);
}
.btn-dark {
    background: var(--dark-3);
    color: var(--white-soft);
    border: 1px solid rgba(255,255,255,0.06);
}
.btn-dark:hover { background: var(--dark-2); color: var(--white); }
.btn-danger {
    background: rgba(224,92,92,0.15);
    color: var(--danger);
    border: 1.5px solid rgba(224,92,92,0.3);
}
.btn-danger:hover { background: rgba(224,92,92,0.25); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--dark-card);
    border: 1px solid rgba(201,168,76,0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--trans);
}
.card:hover {
    border-color: rgba(201,168,76,0.2);
    box-shadow: var(--shadow-gold);
}
.card-gold-border {
    border-color: rgba(201,168,76,0.3);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

/* ─── Company Cards ──────────────────────────────────────── */
.company-card {
    background: var(--dark-card);
    border: 1px solid rgba(201,168,76,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--trans);
    position: relative;
    cursor: pointer;
}
.company-card:hover {
    border-color: rgba(201,168,76,0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-lg);
}
.company-card-cover {
    width: 100%; height: 160px;
    object-fit: cover;
    background: var(--dark-3);
    position: relative;
}
.company-card-cover-img {
    width: 100%; height: 160px;
    object-fit: cover;
}
.company-card-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.company-card-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.company-card-body { padding: 1rem 1.2rem; }
.company-card-logo {
    width: 44px; height: 44px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--dark-3);
    border: 2px solid rgba(201,168,76,0.2);
    padding: 4px;
}
.company-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.company-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
}
.company-card-category {
    font-size: 0.72rem;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.company-card-desc {
    font-size: 0.8rem;
    color: var(--white-soft);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.company-card-stats {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201,168,76,0.08);
}
.company-stat {
    flex: 1;
}
.company-stat-label {
    font-size: 0.65rem;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.company-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

/* ─── Tags & Badges ───────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.tag-gold {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.25);
}
.tag-brown {
    background: rgba(61,43,31,0.5);
    color: var(--white-soft);
    border: 1px solid rgba(92,61,42,0.4);
}
.tag-success {
    background: rgba(76,175,125,0.15);
    color: var(--success);
    border: 1px solid rgba(76,175,125,0.25);
}
.tag-individual { background: rgba(100,149,237,0.12); color: #6495ED; border: 1px solid rgba(100,149,237,0.2); }
.tag-complete   { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.2); }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white-soft);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--dark-2);
    border: 1.5px solid rgba(201,168,76,0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--trans);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--dark-3);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-control::placeholder { color: var(--white-dim); }
.form-control option { background: var(--dark-2); color: var(--white); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.75rem; color: var(--white-dim); margin-top: 0.3rem; }
.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.3rem;
}
.input-group {
    position: relative;
}
.input-group .input-prefix {
    position: absolute;
    left: 0.9rem; top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}
.input-group .form-control { padding-left: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ─── Upload Areas ─────────────────────────────────────────── */
.upload-area {
    border: 2px dashed rgba(201,168,76,0.2);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
}
.upload-area:hover {
    border-color: rgba(201,168,76,0.5);
    background: var(--gold-glow);
}
.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-icon { font-size: 2rem; color: var(--gold); margin-bottom: 0.5rem; }
.upload-text { font-size: 0.85rem; color: var(--white-soft); }
.upload-preview {
    width: 100%; height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: none;
}

/* ─── Wizard ──────────────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    background: var(--dark-card);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    overflow-x: auto;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 140px;
}
.wizard-step-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--dark-3);
    border: 2px solid rgba(201,168,76,0.2);
    color: var(--white-dim);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--trans);
}
.wizard-step-info { flex: 1; min-width: 0; }
.wizard-step-label {
    font-size: 0.65rem;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.wizard-step-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white-soft);
    white-space: nowrap;
}
.wizard-step-line {
    flex: 0 0 40px;
    height: 1px;
    background: rgba(201,168,76,0.15);
    margin: 0 0.5rem;
}
.wizard-step.active .wizard-step-num {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: var(--black);
    box-shadow: 0 0 12px var(--gold-glow-md);
}
.wizard-step.active .wizard-step-title { color: var(--gold); }
.wizard-step.done .wizard-step-num {
    background: rgba(201,168,76,0.15);
    border-color: var(--gold);
    color: var(--gold);
}
.wizard-step.done .wizard-step-title { color: var(--white-soft); }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: fadeInUp 0.3s ease; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Tables ──────────────────────────────────────────────── */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid rgba(201,168,76,0.08);
}
table { width: 100%; border-collapse: collapse; }
thead { background: var(--dark-2); }
th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    white-space: nowrap;
}
td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: var(--white-soft);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(201,168,76,0.03); color: var(--white); }

/* ─── Stats ───────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--dark-card);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--trans);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
}
.stat-card:hover { border-color: rgba(201,168,76,0.25); }
.stat-card-icon {
    width: 40px; height: 40px;
    background: var(--gold-glow);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.stat-card-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-card-label {
    font-size: 0.78rem;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Search Bar ──────────────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dark-2);
    border: 1.5px solid rgba(201,168,76,0.12);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    transition: var(--trans);
}
.search-bar:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.9rem;
}
.search-bar input::placeholder { color: var(--white-dim); }
.search-bar .search-icon { color: var(--gold); font-size: 1rem; }
.search-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.filter-select {
    padding: 0.5rem 1rem;
    background: var(--dark-2);
    border: 1.5px solid rgba(201,168,76,0.12);
    border-radius: 50px;
    color: var(--white-soft);
    font-size: 0.83rem;
    cursor: pointer;
    transition: var(--trans);
    min-width: 150px;
}
.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    color: var(--white);
}

/* ─── Alerts ──────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease;
}
.alert-success {
    background: rgba(76,175,125,0.12);
    border: 1px solid rgba(76,175,125,0.25);
    color: var(--success);
}
.alert-error {
    background: rgba(224,92,92,0.12);
    border: 1px solid rgba(224,92,92,0.25);
    color: var(--danger);
}
.alert-gold {
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--gold);
}

/* ─── Modals ──────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--dark-card);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px var(--gold-glow);
}
.modal-lg { max-width: 900px; }
.modal-sm { max-width: 480px; }
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}
.modal-close {
    width: 32px; height: 32px;
    background: var(--dark-3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white-soft);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--trans);
    border: none;
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 1.75rem; }

/* ─── Tabs ─────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
.tab-btn {
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--white-dim);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    margin-bottom: -1px;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 600;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeInUp 0.25s ease; }

/* ─── Contact Method Tabs ─────────────────────────────────── */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.contact-method-btn {
    padding: 0.75rem;
    background: var(--dark-2);
    border: 1.5px solid rgba(201,168,76,0.1);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--trans);
    color: var(--white-soft);
    font-size: 0.82rem;
    font-weight: 600;
}
.contact-method-btn .method-icon { font-size: 1.4rem; display: block; margin-bottom: 0.25rem; }
.contact-method-btn:hover { border-color: rgba(201,168,76,0.3); color: var(--white); }
.contact-method-btn.active {
    border-color: var(--gold);
    background: var(--gold-glow);
    color: var(--gold);
}
.contact-method-btn.whatsapp.active { border-color: #25D366; background: rgba(37,211,102,0.1); color: #25D366; }
.contact-method-btn.phone.active  { border-color: var(--gold); background: var(--gold-glow); color: var(--gold); }
.contact-method-btn.email.active  { border-color: #6495ED; background: rgba(100,149,237,0.1); color: #6495ED; }

/* ─── Product Panel ──────────────────────────────────────── */
.product-item {
    background: var(--dark-2);
    border: 1px solid rgba(201,168,76,0.08);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeInUp 0.25s ease;
}
.product-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.product-number {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── Profile Cards ──────────────────────────────────────── */
.profile-card {
    background: linear-gradient(145deg, var(--dark-card), var(--dark-2));
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(61,43,31,0.3));
}
.profile-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 24px var(--gold-glow-md);
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}
.profile-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}
.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(139,105,20,0.2));
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold);
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201,168,76,0.1);
}
.profile-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}
.profile-stat-label {
    font-size: 0.68rem;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Investor Card (for entrepreneur send-to list) ───────── */
.investor-card {
    background: var(--dark-card);
    border: 1px solid rgba(201,168,76,0.08);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--trans);
}
.investor-card:hover {
    border-color: rgba(201,168,76,0.25);
    background: var(--dark-2);
}

/* ─── Section Headers ─────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::after {
    content: '';
    display: inline-block;
    width: 24px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin-left: 0.25rem;
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.pagination .page-link {
    min-width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--dark-2);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius-sm);
    color: var(--white-soft);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--trans);
    padding: 0 0.6rem;
}
.pagination .page-link:hover { border-color: var(--gold); color: var(--gold); }
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: var(--black);
    font-weight: 700;
}
.pagination .page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--white-dim);
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}
.empty-state-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--white-soft);
    margin-bottom: 0.5rem;
}

/* ─── Loading Spinner ─────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid rgba(201,168,76,0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ─── Guest Layout ─────────────────────────────────────────── */
.guest-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.guest-left {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.guest-left-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(61,43,31,0.4) 0%, transparent 50%),
        linear-gradient(135deg, #0A0A0A 0%, #1a1208 100%);
}
.guest-left-content { position: relative; z-index: 1; text-align: center; }
.guest-right {
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--dark-card);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.auth-card-header { text-align: center; margin-bottom: 2rem; }
.auth-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--white-dim);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* ─── Role Selection Cards ────────────────────────────────── */
.role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.role-card {
    background: var(--dark-2);
    border: 2px solid rgba(201,168,76,0.12);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
}
.role-card:hover {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-4px);
}
.role-card.selected {
    border-color: var(--gold);
    background: rgba(201,168,76,0.06);
    box-shadow: var(--shadow-gold);
}
.role-card input[type="radio"] { display: none; }
.role-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(139,105,20,0.2));
    border-radius: 16px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(201,168,76,0.2);
    transition: var(--trans);
}
.role-card.selected .role-icon {
    background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(139,105,20,0.3));
    border-color: rgba(201,168,76,0.5);
    box-shadow: 0 0 20px var(--gold-glow);
}
.role-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.role-card-desc { font-size: 0.8rem; color: var(--white-dim); line-height: 1.5; }
.role-check {
    position: absolute;
    top: 10px; right: 10px;
    width: 22px; height: 22px;
    background: var(--gold);
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    color: var(--black);
    font-size: 0.7rem;
}
.role-card.selected .role-check { display: flex; }

/* ─── Notification Items ─────────────────────────────────── */
.notif-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--trans);
    cursor: pointer;
}
.notif-item:hover { background: var(--dark-2); }
.notif-item.unread {
    background: rgba(201,168,76,0.04);
    border-color: rgba(201,168,76,0.1);
}
.notif-item.unread .notif-dot { opacity: 1; }
.notif-icon-wrap {
    width: 40px; height: 40px;
    background: var(--gold-glow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}
.notif-title { font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.notif-body  { font-size: 0.78rem; color: var(--white-soft); }
.notif-time  { font-size: 0.7rem; color: var(--white-dim); margin-top: 3px; }
.notif-dot   { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; margin-top: 4px; opacity: 0; flex-shrink: 0; }

/* ─── Utility ─────────────────────────────────────────────── */
.d-flex  { display: flex; }
.d-grid  { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.p-4  { padding: 1rem; } .p-6 { padding: 1.5rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none; }
.relative { position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .guest-layout { grid-template-columns: 1fr; }
    .guest-left { display: none; }
    .sidebar { transform: translateX(-100%); transition: var(--trans); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .form-row, .form-row-3, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .role-cards { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-content { padding: 1rem; }
}
