/* ═══════════════════════════════════════════════
   DFC Web Shop — Remnawave-inspired Design
   ═══════════════════════════════════════════════ */

:root {
    --bg-primary: #0B121A;
    --bg-secondary: #111922;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(0, 0, 0, 0.3);
    --text-primary: #D6E3ED;
    --text-secondary: #8DA0AE;
    --text-muted: #5C6976;
    --accent: #24C4F1;
    --accent-dark: #1AA3CC;
    --accent-light: #4FD9FF;
    --accent-gradient: linear-gradient(135deg, #24C4F1, #1AA3CC);
    --success: #19C37D;
    --error: #E04F5F;
    --warning: #F4C542;
    --border: #1A232C;
    --border-hover: rgba(36, 196, 241, 0.4);
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --glow: 0 4px 25px rgba(36, 196, 241, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

/* Particles.js background */
#particles-js {
    position: fixed;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(90deg, #000000, #000000);
    pointer-events: none;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-light);
}

/* ═══ Layout ═══ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

/* ═══ Navigation ═══ */

.navbar {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--accent);
}

.nav-center {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.nav-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-center .nav-link {
    position: relative;
    padding: 8px 16px;
    transition: color 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.nav-center .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-center .nav-link:hover::after,
.nav-center .nav-link.active::after {
    transform: scaleX(1);
}

.nav-center .nav-link:hover {
    color: var(--accent);
}

.nav-center .nav-link.active {
    color: var(--accent);
}

/* ═══ Buttons ═══ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: var(--accent-gradient);
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(6, 182, 212, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: white;
}

.btn-danger {
    background: var(--error);
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ═══ Cards ═══ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ═══ Forms ═══ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s;
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ═══ Tabs ═══ */

.tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.tab.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ═══ Auth pages ═══ */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-title {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ═══ Verification code input ═══ */

.code-input-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}

.code-input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

.code-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* ═══ Dashboard ═══ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-grid .full-width {
    grid-column: 1 / -1;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-none {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.sub-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.sub-info-item {
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.sub-info-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sub-info-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.sub-url-box {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-url-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
    outline: none;
}

.sub-url-box button {
    padding: 8px 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.3s;
}

.sub-url-box button:hover {
    box-shadow: var(--glow);
}

/* ═══ Plans grid ═══ */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.plan-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(14, 165, 233, 0.03));
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card-bottom {
    margin-top: auto;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
    border-radius: 50%;
    transition: all 0.4s;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.15);
}

.plan-card:hover::before {
    transform: scale(1.5);
}

.plan-card.trial {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.03));
}

.plan-card.trial::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 70%);
}

/* Discount badge */
.plan-discount {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(25, 195, 125, 0.12);
    color: var(--success);
    border: 1px solid rgba(25, 195, 125, 0.25);
    margin-left: auto;
    white-space: nowrap;
}

/* TOP badge */
.plan-top-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #F4C542, #FF9500);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 0 var(--radius) 0 var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(244, 197, 66, 0.4);
    z-index: 2;
}

.plan-card.is-top {
    border-color: rgba(244, 197, 66, 0.4);
}

.plan-card.is-top:hover {
    border-color: rgba(244, 197, 66, 0.6);
    box-shadow: 0 20px 50px rgba(244, 197, 66, 0.15);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.plan-features {
    list-style: none;
    margin-bottom: 20px;
}

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

.plan-features li i {
    color: var(--accent);
    font-size: 0.85rem;
}

.plan-durations {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.plan-dur-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.plan-dur-btn .dur-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.25s;
    flex-shrink: 0;
    position: relative;
}

.plan-dur-btn.active .dur-radio {
    border-color: var(--accent);
}

.plan-dur-btn.active .dur-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.plan-dur-btn .dur-label {
    flex: 1;
}

.plan-dur-btn.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.plan-dur-btn:hover:not(.active) {
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.plan-price .currency {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.plan-price .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-price.free {
    color: var(--success);
}

/* ═══ Alerts ═══ */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-info {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ═══ Hero section ═══ */

.hero {
    padding: 60px 0 40px;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.8s ease;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 20px;
    animation: fadeUp 1s ease;
}

/* ═══ Features ═══ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    text-align: center;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
    border-radius: 50%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

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

/* ═══ Section titles ═══ */

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* ═══ Footer ═══ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

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

/* ═══ Loading ═══ */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

/* ═══ Toast notifications ═══ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.toast-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ═══ News ═══ */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.news-item {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-meta i {
    margin-right: 4px;
}

.news-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.news-item .news-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.news-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    color: var(--border);
}

/* ═══ Admin Panel ═══ */

.admin-section {
    margin-top: 32px;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}

.admin-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.admin-tab.active {
    background: linear-gradient(135deg, #F4C542, #FF9500);
    color: #000;
    font-weight: 700;
}

.admin-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

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

/* News editor modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}


/* ═══ Support Chat Widget ═══ */

.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(36, 196, 241, 0.4);
    transition: all 0.3s;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(36, 196, 241, 0.6);
}

.chat-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    z-index: 900;
    display: none;
    flex-direction: column;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeUp 0.3s ease;
}

.chat-panel.open {
    display: flex;
}

.chat-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.chat-header button:hover {
    color: var(--accent);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 250px;
    max-height: 350px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(36, 196, 241, 0.15);
    border: 1px solid rgba(36, 196, 241, 0.3);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.chat-msg.admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg .msg-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input-area textarea {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    resize: none;
    outline: none;
    max-height: 80px;
    min-height: 40px;
    line-height: 1.4;
}

.chat-input-area textarea:focus {
    border-color: var(--accent);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    box-shadow: var(--glow);
}

.chat-guest-form {
    padding: 20px;
    text-align: center;
}

.chat-guest-form p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.chat-guest-form input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    margin-bottom: 10px;
}

.chat-guest-form input:focus {
    border-color: var(--accent);
}

.chat-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 40px 20px;
}

.chat-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    color: var(--border);
}

/* ═══ Responsive ═══ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sub-info {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .nav-center {
        gap: 4px;
    }

    .nav-center .nav-link {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .chat-panel {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
    }

    .chat-fab {
        bottom: 16px;
        right: 16px;
    }
}
