/* ===== Emerald Yönetim - Bina Yönetim Sistemi ===== */
/* Dark Theme + Green Neon Accents + Apple Minimalist */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --bg-input: #1c1c1e;
    --bg-glass: rgba(22, 22, 22, 0.85);

    --border: #2a2a2a;
    --border-light: #333333;
    --border-focus: #34d399;

    --green-primary: #34d399;
    --green-dark: #059669;
    --green-light: #6ee7b7;
    --green-glow: rgba(52, 211, 153, 0.15);
    --green-glow-strong: rgba(52, 211, 153, 0.3);

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-inverse: #0a0a0a;

    --red: #ef4444;
    --orange: #f59e0b;
    --blue: #3b82f6;
    --purple: #a855f7;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(52,211,153,0.1);

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --navbar-h: 64px;
    --sidebar-w: 260px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--green-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--green-glow-strong); color: var(--text-primary); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

.text-green { color: var(--green-primary); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font);
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--green-primary);
    color: var(--text-inverse);
    border-color: var(--green-primary);
}
.btn-primary:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    box-shadow: var(--shadow-glow);
    color: var(--text-inverse);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }

.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover { opacity: 0.9; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-full); }

/* --- Form Elements --- */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-textarea { resize: vertical; min-height: 100px; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
}

.card:hover { border-color: var(--border-light); }
.card-glow:hover { box-shadow: var(--shadow-glow); border-color: var(--green-primary); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* --- Stat Cards --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-dark));
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    background: var(--green-glow);
    color: var(--green-primary);
}

.stat-icon.orange { background: rgba(245,158,11,0.12); color: var(--orange); }
.stat-icon.red { background: rgba(239,68,68,0.12); color: var(--red); }
.stat-icon.blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.stat-icon.purple { background: rgba(168,85,247,0.12); color: var(--purple); }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Tables --- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.table tr:hover td { background: var(--bg-card-hover); }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-green { background: rgba(52,211,153,0.12); color: var(--green-primary); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--red); }
.badge-orange { background: rgba(245,158,11,0.12); color: var(--orange); }
.badge-blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--purple); }
.badge-gray { background: rgba(113,113,122,0.12); color: var(--text-muted); }

/* --- Alerts / Flash --- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid;
    animation: alertIn 0.3s ease;
}

.alert-success { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.2); color: var(--green-primary); }
.alert-error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: var(--red); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: var(--orange); }

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.alert-close:hover { opacity: 1; }

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PUBLIC NAVBAR
   ============================================= */
.pub-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.pub-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pub-nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.03em;
}

.pub-nav-logo i { color: var(--green-primary); font-size: 1.4rem; }
.pub-nav-logo:hover { color: var(--text-primary); }

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.pub-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.pub-nav-links a:hover { color: var(--text-primary); }

.pub-nav-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    padding: calc(var(--navbar-h) + 80px) 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.7; transform: translateX(-50%) scale(1.15); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--green-glow);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--green-primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--green-primary), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

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

/* --- Hero Stats Bar --- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 4rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-item { text-align: center; }

.hero-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
    letter-spacing: -0.03em;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--green-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card:hover {
    border-color: rgba(52,211,153,0.3);
    transform: translateY(-4px);
}
.feature-card:hover::after { opacity: 1; }

.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--green-glow);
    color: var(--green-primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   PACKAGES / PRICING
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
}

.pricing-card.popular {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-glow);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: var(--text-inverse);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.pricing-features li i {
    color: var(--green-primary);
    font-size: 0.7rem;
    width: 18px;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.5;
}

.pricing-features li.disabled i { color: var(--text-muted); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(52,211,153,0.08), rgba(5,150,105,0.05));
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52,211,153,0.1), transparent 70%);
    pointer-events: none;
}

.cta-box h2 { margin-bottom: 0.75rem; position: relative; }
.cta-box p { color: var(--text-secondary); margin-bottom: 2rem; position: relative; }

/* =============================================
   FOOTER
   ============================================= */
.pub-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--text-primary); }

/* =============================================
   AUTH / LOGIN PAGE
   ============================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.auth-card--wide {
    max-width: 460px;
}

.auth-form-section {
    margin-bottom: 1.25rem;
}

.auth-form-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-form-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .form-input {
    padding-right: 44px;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition);
}

.auth-password-toggle:hover {
    color: var(--text-primary);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo i {
    font-size: 2.5rem;
    color: var(--green-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.auth-logo h1 {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.auth-logo p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.auth-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.auth-form .form-input {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.auth-form .btn { margin-top: 0.5rem; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* =============================================
   PANEL LAYOUT (Manager / Tenant / Admin)
   ============================================= */
.panel-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--navbar-h);
}

.panel-sidebar {
    width: var(--sidebar-w);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--navbar-h);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
    padding: 1rem 0;
}

.panel-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 2rem;
    min-width: 0;
}

/* --- Panel Navbar --- */
.panel-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.panel-nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    width: var(--sidebar-w);
    letter-spacing: -0.02em;
}

.panel-nav-brand i { color: var(--green-primary); font-size: 1.3rem; }

.panel-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font);
    transition: all var(--transition);
}

.panel-user-btn:hover { border-color: var(--border-light); background: var(--bg-card); }

.panel-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--green-glow);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Sidebar Menu --- */
.sidebar-section {
    padding: 0.5rem 0;
}

.sidebar-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    margin-top: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    border-radius: 0;
    position: relative;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.sidebar-link.active {
    color: var(--green-primary);
    background: var(--green-glow);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--green-primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-link i { width: 20px; text-align: center; font-size: 0.95rem; }

.sidebar-link .sidebar-badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

/* --- Page Header inside panels --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p { font-size: 0.9rem; }

/* =============================================
   404 PAGE
   ============================================= */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--green-primary);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.4s ease;
}

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

/* Scroll-triggered animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   TICKET STATUS COLORS
   ============================================= */
.status-open { color: var(--blue); }
.status-in_progress { color: var(--orange); }
.status-resolved { color: var(--green-primary); }
.status-closed { color: var(--text-muted); }
.status-pending { color: var(--orange); }
.status-paid { color: var(--green-primary); }
.status-overdue { color: var(--red); }

/* =============================================
   UTILITIES
   ============================================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --sidebar-w: 0px;
        --navbar-h: 56px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .pub-nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    .mobile-menu {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        z-index: 999;
        padding: 2rem;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-menu.show { display: flex; }

    .mobile-menu a {
        display: block;
        padding: 14px 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border);
    }

    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .hero { padding: calc(var(--navbar-h) + 40px) 0 60px; min-height: auto; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .cta-box { padding: 2rem; }

    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }

    /* Panel responsive */
    .panel-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
        width: 260px;
        z-index: 300;
    }

    .panel-sidebar.open { transform: translateX(0); }
    .panel-main { margin-left: 0; padding: 1rem; }
    .panel-nav-brand { width: auto; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stat-grid { grid-template-columns: 1fr; }
    .hero-stat-num { font-size: 1.5rem; }

    .auth-form { padding: 1.5rem; }
}
