.admin-layout {
    background: #050a18;
    margin: 0;
    min-height: 100vh;
    font-family: 'Rajdhani', sans-serif;
    color: #f8fafc;
}

.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #050a18;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.neon-box {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    border-radius: 25px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo { width: 100px; margin-bottom: 20px; filter: drop-shadow(0 0 10px #ff8c00); }

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.neon-sidebar {
    width: 300px;
    background: #050a18;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo { width: 80px; margin: 0 auto 15px auto; display: block; filter: drop-shadow(0 0 10px var(--primary-neon)); }
.panel-tag { font-size: 0.65rem; color: #ff8c00; letter-spacing: 2px; text-align: center; margin-bottom: 20px; }
.user-greeting { background: rgba(255,255,255,0.05); padding: 12px; border-radius: 12px; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sidebar-nav button {
    background: transparent; border: 1px solid rgba(255,255,255,0.05); color: #94a3b8;
    text-align: left; padding: 14px 18px; border-radius: 12px; cursor: pointer; transition: all 0.3s;
    font-family: 'Orbitron', sans-serif; font-size: 0.75rem; display: flex; align-items: center; gap: 12px;
}
.sidebar-nav button i { width: 20px; text-align: center; font-size: 0.9rem; }
.sidebar-nav button:hover { background: rgba(255, 140, 0, 0.1); color: #fff; border-color: rgba(255, 140, 0, 0.3); }
.sidebar-nav button.active { background: #ff8c00; color: #000; font-weight: 700; box-shadow: 0 0 15px rgba(255, 140, 0, 0.5); border: none; }

.nav-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 15px 0; }
.support-btn { background: rgba(59, 130, 246, 0.1) !important; color: #60a5fa !important; border-color: rgba(59, 130, 246, 0.3) !important; }

.sidebar-footer { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 10px; }
.side-link { text-decoration: none; color: #94a3b8; font-size: 0.7rem; display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.side-link:hover { color: #fff; }
.side-link.logout { color: #ef4444; }

/* Content Area */
.content-area {
    margin-left: 300px;
    flex: 1;
    padding: 40px;
    background: radial-gradient(circle at top right, #0f172a 0%, #020617 100%);
}

.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; gap: 20px; }

.status-banner {
    padding: 10px 20px; border-radius: 5px; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 1px; white-space: nowrap; border: none;
}
.status-active { background: #22c55e; color: #fff; }
.status-suspended { background: #ef4444; color: #fff; }

.billing-info-strip {
    display: flex; gap: 20px;
}
.bill-box {
    background: rgba(255,255,255,0.03); border-left: 4px solid #ff8c00;
    padding: 10px 20px; border-radius: 5px; display: flex; flex-direction: column;
}
.bill-box .lbl { font-size: 0.7rem; color: #94a3b8; }
.bill-box .val { font-size: 1.1rem; color: #fff; font-weight: 700; }

.info-section-header {
    font-size: 1.2rem; color: #fff; margin: 40px 0 20px 0; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px;
}

.overdue-pulse {
    border-color: #FF0055 !important;
    animation: overduePulse 2s infinite ease-in-out;
    background: rgba(255, 0, 85, 0.05) !important;
}

@keyframes overduePulse {
    0%, 100% { box-shadow: 0 0 10px #FF0055; transform: scale(1); }
    50% { box-shadow: 0 0 30px #FF0055; transform: scale(1.02); }
}

.overdue-pulse .label, .overdue-pulse .value { color: #FF0055 !important; }

.bill-item { display: flex; flex-direction: column; }
.bill-item .label { font-size: 0.55rem; color: #eab308; font-weight: 800; margin-bottom: 4px; }
.bill-item .value { font-size: 1rem; color: #fff; font-weight: 700; }

.main-form { max-width: 900px; margin: 0 auto; }

.btn-neon {
    padding: 15px 30px; border: none; border-radius: 12px; font-family: 'Orbitron', sans-serif;
    font-weight: 800; cursor: pointer; transition: all 0.3s; font-size: 0.8rem;
}
.btn-action-solid {
    background: #ff8c00; color: #fff; border: none; padding: 15px; border-radius: 5px;
    font-weight: 700; width: 100%; cursor: pointer; margin-bottom: 10px;
}
.btn-action-outline {
    background: transparent; color: #fff; border: 1px solid #ff8c00; padding: 15px; border-radius: 5px;
    font-weight: 700; width: 100%; cursor: pointer;
}
.btn-neon:hover { transform: translateY(-3px); filter: brightness(1.2); }
.btn-neon.red { background: #ef4444; color: #fff; }

.action-bar { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 30px; }

.preview-pane {
    background: #000; border-radius: 20px; overflow: hidden; margin-top: 40px;
    border: 2px solid #334155;
}
.preview-header { background: #1e293b; padding: 10px; text-align: center; font-size: 0.65rem; color: #94a3b8; }
.preview-frame-wrapper { padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 30px; background: rgba(0,0,0,0.8); }
.preview-pane iframe { width: 500px; height: 800px; border: none; border-radius: 15px; box-shadow: 0 0 40px rgba(255, 140, 0, 0.2); }

.mobile-nav-header {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 60px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-neon, #ff8c00);
    z-index: 2000;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo { height: 40px; filter: drop-shadow(0 0 5px var(--primary-neon)); }

.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--primary-neon);
    font-size: 1.5rem;
    cursor: pointer;
    text-shadow: 0 0 10px var(--primary-neon);
}

.download-section { margin-top: 40px; padding: 20px 0; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.download-card {
    background: #ffffff; color: #1e293b; text-decoration: none; padding: 20px; border-radius: 8px;
    display: flex; align-items: center; gap: 15px; border: 1px solid #e2e8f0; transition: transform 0.2s;
}
.download-card:hover { transform: translateY(-3px); border-color: #ff8c00; color: #1e293b; }
.download-card i { font-size: 1.5rem; color: #ff8c00; }
.download-card .d-text strong { display: block; font-size: 0.95rem; }
.download-card .d-text span { font-size: 0.75rem; color: #64748b; }

@media (max-width: 900px) {
    .mobile-nav-header { display: flex; }
    .neon-sidebar { 
        transform: translateX(-100%); 
        width: 280px;
        padding-top: 80px;
    }
    .neon-sidebar.active { transform: translateX(0); }
    .content-area { margin-left: 0; padding: 80px 15px 20px 15px; }
    .content-header { flex-direction: column; align-items: stretch; gap: 15px; }
    .billing-card { width: 100%; flex-direction: column; gap: 10px; padding: 15px; }
    .status-banner { text-align: center; }
    .preview-pane iframe { width: 100%; height: 500px; }
    .tab-btn { font-size: 0.7rem; padding: 8px 10px; }
}
.login-card h2, .dashboard-card h2 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.95rem;
}
.tab-content { background: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); color: #1e293b; }
.tab-content .section-title { color: #050a18; border-left-color: #ff8c00; }
.tab-content label { color: #64748b; }
.form-group textarea {
    min-height: 80px;
    resize: vertical;
}
.social-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.order-controls {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content;
    margin-bottom: 5px;
}

.order-controls input[type="number"] {
    width: 35px !important;
    padding: 2px !important;
    text-align: center;
    border: none !important;
    background: transparent !important;
    font-size: 0.8rem;
    -moz-appearance: textfield;
}

.order-controls input::-webkit-outer-spin-button,
.order-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order-arrow {
    background: transparent;
    border: none;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.order-arrow:hover {
    color: white;
}

.order-arrow:active {
    transform: scale(0.9);
}
.social-input-group input[type="url"], .social-input-group input[type="text"] {
    flex: 1;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    min-width: 80px;
}
.toggle-label input { width: auto !important; margin: 0 !important; }

.section-title {
    font-size: 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin: 30px 0 15px 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-pane {
    margin-top: 30px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}
.preview-pane iframe {
    width: 100%;
    height: 400px;
    border: none;
}
.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: #ffb347;
    transform: translateY(-2px);
}

/* Tabs System */
.tabs-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 12px;
    overflow-x: auto;
}
.tab-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}
.tab-btn.active {
    background: var(--primary-color);
    color: #000;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.hidden { display: none; }
.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.logout-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}
.logout-link:hover { color: white; }
.preview-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 10px;
    background: white;
    padding: 5px;
}