/* Global Variables & Themes: Premium Ocean Light Theme */
:root {
    --bg-primary: #f3f7fa;      /* Soft light-blue ocean ambient background */
    --bg-secondary: #ffffff;    /* Pure white for panels */
    --bg-glass: rgba(255, 255, 255, 0.75); /* Clean white glass */
    --border-glass: rgba(15, 23, 42, 0.08); /* Minimal dark gray border */
    --border-glass-hover: rgba(15, 23, 42, 0.16);
    
    --text-primary: #0f172a;    /* Slate-900 */
    --text-secondary: #475569;  /* Slate-600 */
    --text-muted: #94a3b8;      /* Slate-400 */
    
    --accent-blue: #0284c7;     /* Sky-600 */
    --accent-indigo: #4f46e5;   /* Indigo-600 */
    --accent-teal: #0d9488;     /* Teal-600 */
    --accent-green: #16a34a;    /* Green-600 */
    --accent-red: #dc2626;      /* Red-600 */
    
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-premium-hover: 0 30px 60px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ambient Background Blobs (Optimized for light mode) */
.bg-gradient-blobs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.25;
    mix-blend-mode: multiply;
    animation: blobFloat 22s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7dd3fc 0%, transparent 80%);
    top: -5%;
    left: -5%;
}

.blob-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #99f6e4 0%, transparent 80%);
    bottom: -5%;
    right: -5%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.08); }
    66% { transform: translate(-20px, 30px) scale(0.92); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    z-index: 10;
}

/* Glassmorphism Card styling (Cerah & Premium) */
.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-premium-hover);
    transform: translateY(-2px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine 8s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* Typography & Titles */
.text-center { text-align: center; }

.portal-title {
    font-family: var(--font-title);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.portal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Logo Wrapper */
.logo-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    border: 1px solid rgba(2, 132, 199, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Controls */
.portal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-icon-wrapper .form-input {
    padding-left: 46px;
}

.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.15);
    background: #ffffff;
}

.form-input:focus + .input-icon {
    color: var(--accent-blue);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.35);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--text-secondary);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.35);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: var(--accent-red);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 10px;
    border-radius: 10px;
    width: 42px;
    height: 42px;
}

.btn-icon-text {
    padding: 10px 18px;
    font-size: 0.85rem;
}

/* Alert Box */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-top: 20px;
    line-height: 1.4;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: #15803d;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-scale-up {
    animation: scaleUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-pulse {
    animation: pulseGlow 3s infinite alternate;
}

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

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(2, 132, 199, 0.05); border-color: rgba(2, 132, 199, 0.15); }
    100% { box-shadow: 0 0 25px rgba(2, 132, 199, 0.25); border-color: rgba(2, 132, 199, 0.4); }
}

/* OTP Dashboard Styling */
#dashboard-section {
    max-width: 600px;
    width: 100%;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #ffffff;
}

.user-welcome {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Real-time Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.03);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 24px;
    border: 1px solid var(--border-glass);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: beacon 1.8s infinite;
}

@keyframes beacon {
    0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* OTP Display Card */
.otp-container {
    margin-bottom: 30px;
}

.otp-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 250, 0.9));
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.otp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.otp-source-label {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.otp-source-label i {
    color: var(--accent-blue);
}

.otp-time-badge {
    background: rgba(15, 23, 42, 0.04);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.otp-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.otp-code {
    font-family: var(--font-title);
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.1));
}

.btn-copy {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(13, 148, 136, 0.08));
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: var(--accent-blue);
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    height: 42px;
}

.btn-copy:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.04);
}

.btn-copy:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.otp-card-footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* History Section */
.history-section {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--accent-blue);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar */
.history-list::-webkit-scrollbar,
.log-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-thumb,
.log-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover,
.log-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.25);
}

.history-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.4;
}

.history-item {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.history-item:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

.hist-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hist-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hist-account {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hist-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* =========================================
   ADMIN DASHBOARD CSS
   ========================================= */

.admin-body {
    align-items: flex-start;
    padding: 0;
    background: var(--bg-primary);
}

.admin-body .container {
    max-width: 440px;
    margin-top: 10vh;
}

.admin-dashboard-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.admin-header {
    height: 70px;
    border-bottom: 1px solid var(--border-glass);
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo-icon-small {
    font-size: 1.4rem;
    color: var(--accent-blue);
}

.header-logo h2 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 750;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-badge {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Grid Layout */
.admin-content-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 240px 1fr;
    height: calc(100vh - 70px);
}

.admin-sidebar {
    border-right: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.4);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: var(--transition-smooth);
}

.nav-item i {
    font-size: 1rem;
    width: 20px;
}

.nav-item:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.08), transparent);
    color: var(--accent-blue);
    border-left: 3px solid var(--accent-blue);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.domain-info {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Main Panel */
.admin-main-panel {
    padding: 35px;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

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

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.section-main-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Admin Tables */
.table-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.admin-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition-smooth);
}

.admin-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.015);
}

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

/* Badges inside table */
.badge-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status.active {
    background: rgba(22, 163, 74, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.badge-status.inactive {
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.badge-target {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
}

.badge-target.all-target {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: var(--accent-blue);
}

.code-text {
    font-family: monospace;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1.05rem;
    background: rgba(2, 132, 199, 0.06);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Actions Cell buttons */
.btn-table-action {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.action-delete {
    color: var(--text-muted);
}

.action-delete:hover {
    color: var(--accent-red);
    background: rgba(220, 38, 38, 0.08);
}

.action-toggle {
    color: var(--text-muted);
}

.action-toggle:hover {
    color: var(--accent-blue);
    background: rgba(2, 132, 199, 0.08);
}

/* Logs Tab styling */
.action-buttons {
    display: flex;
    gap: 10px;
}

.log-viewer-container {
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.log-list-wrapper {
    height: 480px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: monospace;
    font-size: 0.8rem;
}

.log-item {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.01);
    border: 1px solid rgba(15, 23, 42, 0.03);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-item-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.log-action-tag {
    font-weight: 700;
}

.log-time-tag {
    font-size: 0.75rem;
}

.log-desc {
    color: var(--text-primary);
    word-break: break-all;
}

/* Status colors for logs */
.log-item[data-action="RECEIVE_OTP"] { border-left: 3px solid var(--accent-green); }
.log-item[data-action="ACCESS_OTP"] { border-left: 3px solid var(--accent-blue); }
.log-item[data-action="ADD_ACCOUNT"],
.log-item[data-action="CREATE_CODE"] { border-left: 3px solid var(--accent-indigo); }
.log-item[data-action*="ERROR"],
.log-item[data-action="PARSING_ERROR"] { border-left: 3px solid var(--accent-red); background: rgba(220, 38, 38, 0.02); }

.empty-log {
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    height: 100%;
    border: none;
    background: transparent;
}

/* Guide List Styling */
.info-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.6);
}

.info-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    margin-bottom: 12px;
}

.info-card h4 i {
    color: var(--accent-blue);
}

.guide-list {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
}

.guide-list code {
    background: rgba(15, 23, 42, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text-primary);
}

.mt-4 { margin-top: 30px; }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    max-width: 460px;
    width: 90%;
    padding: 30px;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay:not(.hidden) .modal {
    transform: scale(1) translateY(0);
}

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

.modal-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 4px;
}

.btn-close-modal:hover {
    color: var(--text-primary);
}

.input-action-group {
    display: flex;
    gap: 10px;
}

.input-action-group .form-input {
    padding-left: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--accent-red); }
.text-success { color: var(--accent-green); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-content-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        flex-direction: row;
        padding: 12px 20px;
        align-items: center;
    }
    
    .nav-list {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--accent-blue);
        padding-left: 12px;
        border-radius: 0;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .admin-main-panel {
        padding: 20px;
    }
    
    .admin-header {
        padding: 0 20px;
    }
}

/* Specific Mobile Optimization (Compact & Overlap Fix) */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 24px 18px;
        border-radius: 20px;
    }
    
    .portal-title {
        font-size: 1.8rem;
    }
    
    .portal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .dashboard-header {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    
    .user-profile {
        gap: 10px;
    }
    
    .avatar {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .user-name {
        font-size: 0.95rem;
    }
    
    .status-indicator {
        margin-bottom: 16px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .otp-card {
        padding: 16px;
    }
    
    .otp-card-header {
        margin-bottom: 12px;
        font-size: 0.8rem;
    }
    
    .otp-body {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 14px;
    }
    
    .otp-code {
        font-size: 2.8rem;
        letter-spacing: 2px;
        text-align: center;
        width: 100%;
        line-height: 1.1;
    }
    
    .btn-copy {
        width: 100%;
        height: 40px;
        font-size: 0.85rem;
        padding: 8px 16px;
        justify-content: center;
    }
    
    .otp-card-footer {
        padding-top: 10px;
        font-size: 0.75rem;
    }
    
    .history-section {
        padding-top: 16px;
    }
    
    .section-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .history-item {
        padding: 8px 12px;
    }
    
    .hist-code {
        font-size: 0.95rem;
    }
    
    .hist-time {
        font-size: 0.7rem;
    }
}

/* Toast Notifications Container & Animation */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: #ffffff;
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-left: 4px solid var(--accent-green);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 260px;
    animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: var(--transition-smooth);
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

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

/* OTP Countdown Timer Badges */
.otp-timer-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.otp-timer-badge.active {
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.otp-timer-badge.warning {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.15);
    animation: timerBlink 1s linear infinite;
}

.otp-timer-badge.expired {
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

@keyframes timerBlink {
    50% { opacity: 0.4; }
}

/* New OTP Arrived Card Animation Pulse */
.otp-card.pulse-new {
    animation: cardPulse 0.8s ease-out;
}

@keyframes cardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 35px rgba(22, 163, 74, 0.25); border-color: rgba(22, 163, 74, 0.4); }
    100% { transform: scale(1); }
}
