/* WinnoSMS Premium Design System */

:root {
    --bg-base: #080c14;
    --bg-surface: rgba(15, 22, 38, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(99, 102, 241, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #6366f1; /* Neon Indigo */
    --accent-secondary: #a855f7; /* Violet */
    --accent-cyan: #06b6d4; /* Cyber Cyan */
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --grad-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --grad-cyber: linear-gradient(135deg, var(--accent-cyan), var(--accent-primary));
    --shadow-premium: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 16px;
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global resets & background setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Glowing decorative background bubbles */
.glow-bg-1 {
    position: fixed;
    top: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.glow-bg-2 {
    position: fixed;
    bottom: -200px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.09) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Header & Navigation */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(8, 12, 20, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px 20px;
}

.header-right-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.logo-container {
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.accent-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    text-transform: uppercase;
}

.app-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.balance-value {
    color: var(--success);
    font-family: var(--font-heading);
    font-weight: 700;
}

.user-email {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Layout */
.app-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.main-container {
    animation: fadeIn 0.4s ease-out;
}

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

/* Cards & Layout Panels */
.content-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    border-color: var(--border-color-glow);
}
.notice-card {
    background: var(--grad-primary);
    border-radius: var(--border-radius);
    padding: 20px;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(99,102,241,0.6), inset 0 0 10px rgba(255,255,255,0.2);
    margin-bottom: 20px;
    animation: pulseGlow 2s infinite;
}
.notice-text {
    font-size: 15px;
    font-weight: 600;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(99,102,241,0.4); }
    50% { box-shadow: 0 0 30px rgba(99,102,241,0.8); }
    100% { box-shadow: 0 0 20px rgba(99,102,241,0.4); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}

.content-card > h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
    margin-top: 0;
}

/* Auth Card Layout */
.auth-card {
    max-width: 450px;
    margin: 80px auto;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    animation: fadeIn 0.5s ease-out;
}

.auth-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 30px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.auth-tab-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.auth-form h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Forms controls */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input, .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.form-help {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 6px;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

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

.btn-danger:hover {
    background: #d32f2f;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Text formats */
h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

/* Stats Cards Grid */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-premium);
}

.stat-icon {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.03);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-content h3 {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-top: 4px;
}

/* Tables design */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.table-placeholder {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-pill.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-pill.offline {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.status-pill.sent {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

.status-pill.failed {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.status-pill.pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

/* Device Manager Screen */
.devices-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .devices-layout {
        grid-template-columns: 1fr;
    }
}

.devices-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-devices {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}

.device-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.device-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.device-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}

.device-id-badge {
    font-family: monospace;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.device-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.device-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.device-info-label {
    font-size: 11px;
    color: var(--text-muted);
}

.device-info-value {
    font-size: 13px;
    font-weight: 500;
}

.device-expiry {
    grid-column: 1 / -1;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.device-expiry-expired {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* API Integration & Code Blocks */
.api-layout {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .api-layout {
        grid-template-columns: 1fr;
    }
}

.tab-docs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.tab-doc-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.tab-doc-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.code-blocks {
    border-radius: 10px;
    background: #04060b;
    border: 1px solid var(--border-color);
    padding: 20px;
    overflow-x: auto;
}

.code-block {
    display: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: var(--accent-cyan);
}

.code-block.active {
    display: block;
}

/* Pricing Cards & Billing */
.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.refund-policy-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 30px;
    animation: fadeIn 0.4s ease-out;
}

.refund-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.refund-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.refund-text strong {
    color: var(--warning);
    font-weight: 700;
}

.refund-text a {
    color: var(--accent-cyan);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-fast);
}

.refund-text a:hover {
    color: var(--text-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-fast);
}

.price-card.popular {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.15), var(--shadow-premium);
}

.price-card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--grad-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.price-card.recommended {
    border-color: #39ff14;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.25), var(--shadow-premium);
}

.price-card.recommended::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #39ff14, #10b981);
    color: #080c14;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.price-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
    color: var(--text-primary);
}

.price-details {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.price-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.price-details p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.price-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 220px;
    margin: 0 auto;
}

.price-details li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-details li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.buy-btn {
    margin-top: auto;
}

/* Modals overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

/* Xendit Invoice Modal */
.checkout-modal {
    background: #ffffff; /* Mimics Xendit clean white */
    width: 480px;
    border-radius: 12px;
    color: #1a202c;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: var(--font-body);
}

.xendit-header {
    background: #5b46e5; /* Xendit Purple */
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xendit-brand {
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
}

.invoice-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

.invoice-number {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-family: monospace;
}

.checkout-body {
    padding: 30px;
}

.checkout-summary {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
}

.pay-to {
    color: #718096;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.client-name {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

.checkout-summary hr {
    border: none;
    border-top: 1px solid #edf2f7;
    margin: 15px 0;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.invoice-row-label {
    color: #4a5568;
}

.invoice-row-value {
    font-weight: 600;
}

.total-row {
    margin-top: 15px;
    font-weight: 700;
    font-size: 16px;
}

.total-price {
    color: #5b46e5;
    font-size: 20px;
}

.checkout-methods h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: #718096;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-item.active {
    border-color: #5b46e5;
    background: rgba(91, 70, 229, 0.05);
}

.pm-logo {
    font-size: 22px;
}

.pm-details {
    display: flex;
    flex-direction: column;
}

.pm-name {
    font-weight: 700;
    font-size: 14px;
}

.pm-sub {
    font-size: 11px;
    color: #718096;
}

.simulation-banner {
    background: #feebc8;
    border: 1px solid #fbd38d;
    color: #c05621;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    margin: 20px 0;
    text-align: center;
}

.checkout-actions {
    display: flex;
    gap: 12px;
}

.checkout-actions .btn {
    flex: 1;
    border-radius: 6px;
}

.checkout-actions .btn-primary {
    background: #5b46e5;
    box-shadow: 0 4px 10px rgba(91, 70, 229, 0.3);
}

.checkout-actions .btn-primary:hover {
    background: #4933d1;
    transform: none;
}

.checkout-actions .btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.checkout-actions .btn-secondary:hover {
    background: #e2e8f0;
}

/* Admin Modals and components */
.admin-modal {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius);
    width: 450px;
    box-shadow: var(--shadow-premium);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.modal-actions .btn {
    flex: 1;
}

/* Copy Row */
.copy-input-row {
    display: flex;
    gap: 8px;
}

.copy-input-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color);
    color: #ffffff !important;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 14px;
    border-radius: 8px;
    outline: none;
}

/* Admin Tab layouts */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: var(--transition-fast);
}

.admin-tab-btn:hover {
    color: var(--text-primary);
}

.admin-tab-btn.active {
    color: var(--accent-cyan);
}

.admin-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.admin-tab-content.active-tab {
    display: block;
}

.admin-license-layout {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .admin-license-layout {
        grid-template-columns: 1fr;
    }
}

/* Alerts and Messages UI */
.alert-message {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 20px;
    animation: fadeIn 0.2s ease-out;
}

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

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

/* Glowing animations */
.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.glow-button:hover::after {
    left: 140%;
}

/* Signal Bars & Charging Indicators */
.charging-indicator {
    color: #F59E0B; /* Yellow/Amber color for charging bolt */
    font-weight: bold;
    display: inline-block;
    margin-left: 4px;
    animation: chargingPulse 1.5s infinite;
}

.carrier-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    width: 14px;
    height: 10px;
    gap: 1.5px;
    vertical-align: middle;
}

.signal-bars .bar {
    width: 2px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0.5px;
}

.signal-bars .bar:nth-child(1) { height: 2.5px; }
.signal-bars .bar:nth-child(2) { height: 5px; }
.signal-bars .bar:nth-child(3) { height: 7.5px; }
.signal-bars .bar:nth-child(4) { height: 10px; }

.signal-bars .bar.active {
    background-color: var(--success); /* Green bars */
}

@keyframes chargingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.sim-offline-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Expandable Details Grid Layout */
.device-row-main:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.device-row-details {
    animation: slideDown 0.25s ease-out;
}

.expanded-device-details {
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 10px;
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-details-btn.active {
    background: var(--accent-primary) !important;
    color: white !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

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

/* Responsive Header Adjustments */
@media (max-width: 1300px) {
    .app-header {
        padding: 12px 20px;
        gap: 12px 15px;
    }
    .nav-btn {
        padding: 8px 12px;
        font-size: 13.5px;
    }
    .user-menu {
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .header-right-area {
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    .logo-container {
        align-items: center !important;
    }
    .logo-subtext {
        padding-left: 0 !important;
        text-align: center;
    }
    .app-nav {
        width: 100%;
        justify-content: center;
    }
    .user-menu {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
}

/* Split Landing Grid Layout */
.landing-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 80px auto;
    animation: fadeIn 0.5s ease-out;
}

.landing-showcase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #10b981;
    font-family: var(--font-body);
    margin-bottom: 12px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #10b981;
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.landing-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.landing-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.features-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.feature-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.feature-item-card:hover {
    border-color: var(--border-color-glow);
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon-wrapper {
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text-block h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-text-block p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Right Column Layout Container */
.landing-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 480px;
    justify-self: end;
}

/* Authentication Card on Split Page */
.landing-auth-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    width: 100%;
}

@media (max-width: 992px) {
    .landing-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 20px auto 40px auto;
    }
    .landing-right-column {
        justify-self: center;
        max-width: 450px;
    }
    .landing-title {
        font-size: 32px;
    }
}

/* Glowing Help Center Link */
.landing-help-glow {
    margin: 10px 0 25px 0;
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.4);
    font-family: var(--font-heading);
}

.landing-help-glow a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.4);
    transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.landing-help-glow a:hover {
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Developer Console / Terminal Simulator */
.mock-terminal {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    padding: 14px 18px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #f59e0b; }
.terminal-dot.green { background-color: #10b981; }

.terminal-title {
    font-size: 11px;
    color: #64748b;
    margin-left: 8px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.terminal-body {
    font-size: 12.5px;
    line-height: 1.6;
    height: 110px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.terminal-body::-webkit-scrollbar {
    width: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.term-purple { color: #c084fc; font-weight: 600; }
.term-white { color: #f8fafc; }
.term-orange { color: #fb923c; }
.term-yellow { color: #facc15; }
.term-green { color: #4ade80; }
.term-gray { color: #475569; }
