/* RST PAY - Premium Fintech Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --rst-neon: #00A8FF;
    --rst-blue: #0057FF;
    --rst-silver: #C0C7D1;
    --rst-black: #0A0A0A;
    --rst-dark: #161A22;
    --rst-dark-2: #1E2430;
    --rst-dark-3: #252B38;
    --rst-glass: rgba(22, 26, 34, 0.75);
    --rst-glass-border: rgba(0, 168, 255, 0.15);
    --rst-glow: 0 0 20px rgba(0, 168, 255, 0.3);
    --rst-glow-strong: 0 0 30px rgba(0, 168, 255, 0.5), 0 0 60px rgba(0, 87, 255, 0.2);
    --rst-radius: 16px;
    --rst-radius-sm: 10px;
    --rst-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Poppins', 'Inter', sans-serif;
    --sidebar-width: 280px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--rst-black);
    color: var(--rst-silver);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 87, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 168, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 87, 255, 0.04) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6, .font-orbitron {
    font-family: var(--font-title);
    color: #fff;
    letter-spacing: 0.5px;
}

.text-neon { color: var(--rst-neon); text-shadow: 0 0 10px rgba(0, 168, 255, 0.5); }

.text-gradient {
    background: linear-gradient(135deg, var(--rst-neon), var(--rst-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--rst-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--rst-glass-border);
    border-radius: var(--rst-radius);
    padding: 24px;
    transition: var(--rst-transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.3), transparent);
}

.glass-card:hover {
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: var(--rst-glow);
    transform: translateY(-2px);
}

.stat-card {
    background: var(--rst-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rst-glass-border);
    border-radius: var(--rst-radius);
    padding: 24px;
    transition: var(--rst-transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.05) 0%, transparent 70%);
    transition: var(--rst-transition);
}

.stat-card:hover {
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: var(--rst-glow-strong);
    transform: translateY(-4px);
}

.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(0, 87, 255, 0.15));
    border: 1px solid rgba(0, 168, 255, 0.2);
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--rst-silver);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-change.up { color: #00E676; }
.stat-change.down { color: #FF5252; }

.btn-rst {
    background: linear-gradient(135deg, var(--rst-neon), var(--rst-blue));
    color: #fff;
    border: none;
    border-radius: var(--rst-radius-sm);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--rst-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-rst:hover {
    box-shadow: var(--rst-glow-strong);
    transform: translateY(-2px);
    color: #fff;
}

.btn-rst-outline {
    background: transparent;
    color: var(--rst-neon);
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: var(--rst-radius-sm);
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rst-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-rst-outline:hover {
    background: rgba(0, 168, 255, 0.1);
    border-color: var(--rst-neon);
    box-shadow: var(--rst-glow);
    color: var(--rst-neon);
}

.form-control-rst {
    background: rgba(22, 26, 34, 0.8);
    border: 1px solid rgba(192, 199, 209, 0.15);
    border-radius: var(--rst-radius-sm);
    color: #fff;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--rst-transition);
    width: 100%;
}

.form-control-rst:focus {
    outline: none;
    border-color: var(--rst-neon);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.15);
    background: rgba(22, 26, 34, 0.95);
}

.form-control-rst::placeholder { color: rgba(192, 199, 209, 0.4); }

.form-label-rst {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rst-silver);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--rst-glass-border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--rst-transition);
    overflow-y: auto;
}

.sidebar-logo {
    padding: 28px 24px;
    border-bottom: 1px solid var(--rst-glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--rst-neon), var(--rst-blue));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: var(--rst-glow);
}

.sidebar-logo .logo-text {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-logo .logo-text span { color: var(--rst-neon); }

.sidebar-nav { padding: 20px 12px; flex: 1; }

.nav-item-rst {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--rst-radius-sm);
    color: var(--rst-silver);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--rst-transition);
    margin-bottom: 4px;
    position: relative;
}

.nav-item-rst .nav-icon { font-size: 1.2rem; width: 24px; text-align: center; }

.nav-item-rst:hover {
    background: rgba(0, 168, 255, 0.08);
    color: #fff;
}

.nav-item-rst.active {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(0, 87, 255, 0.1));
    color: var(--rst-neon);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.nav-item-rst.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--rst-neon);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--rst-neon);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--rst-glass-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--rst-radius-sm);
    background: rgba(0, 168, 255, 0.05);
    border: 1px solid var(--rst-glass-border);
}

.user-avatar {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rst-neon), var(--rst-blue));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.user-name { font-weight: 600; color: #fff; font-size: 0.85rem; }
.user-role { font-size: 0.75rem; color: var(--rst-neon); opacity: 0.8; }

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 32px;
    transition: var(--rst-transition);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rst-glass-border);
}

.page-title { font-size: 1.6rem; font-weight: 700; }
.page-subtitle { color: var(--rst-silver); opacity: 0.7; font-size: 0.9rem; margin-top: 4px; }
.top-bar-actions { display: flex; align-items: center; gap: 12px; }

.chart-container {
    background: var(--rst-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rst-glass-border);
    border-radius: var(--rst-radius);
    padding: 24px;
    transition: var(--rst-transition);
}

.chart-container:hover { border-color: rgba(0, 168, 255, 0.25); }

.chart-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.table-rst { width: 100%; border-collapse: separate; border-spacing: 0; }

.table-rst thead th {
    background: rgba(0, 168, 255, 0.05);
    color: var(--rst-silver);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rst-glass-border);
}

.table-rst tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(192, 199, 209, 0.05);
    font-size: 0.9rem;
    color: var(--rst-silver);
}

.table-rst tbody tr { transition: var(--rst-transition); }
.table-rst tbody tr:hover { background: rgba(0, 168, 255, 0.03); }

.badge-rst {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: rgba(0, 230, 118, 0.15); color: #00E676; border: 1px solid rgba(0, 230, 118, 0.3); }
.badge-warning { background: rgba(255, 193, 7, 0.15); color: #FFC107; border: 1px solid rgba(255, 193, 7, 0.3); }
.badge-danger { background: rgba(255, 82, 82, 0.15); color: #FF5252; border: 1px solid rgba(255, 82, 82, 0.3); }
.badge-info { background: rgba(0, 168, 255, 0.15); color: var(--rst-neon); border: 1px solid rgba(0, 168, 255, 0.3); }
.badge-secondary { background: rgba(192, 199, 209, 0.1); color: var(--rst-silver); border: 1px solid rgba(192, 199, 209, 0.2); }

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--rst-glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--rst-glass-border);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.auth-logo { text-align: center; margin-bottom: 36px; }

.auth-logo .logo-icon-lg {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--rst-neon), var(--rst-blue));
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: var(--rst-glow-strong);
    margin-bottom: 16px;
}

.auth-logo h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-logo p { color: var(--rst-silver); opacity: 0.7; font-size: 0.9rem; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: rgba(192, 199, 209, 0.4);
    font-size: 0.85rem;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rst-glass-border);
}

.auth-link {
    color: var(--rst-neon);
    text-decoration: none;
    font-weight: 500;
    transition: var(--rst-transition);
}

.auth-link:hover { text-shadow: 0 0 10px rgba(0, 168, 255, 0.5); color: var(--rst-neon); }

.loader-rst {
    width: 48px; height: 48px;
    border: 3px solid rgba(0, 168, 255, 0.1);
    border-top-color: var(--rst-neon);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.loader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loader-overlay .loader-text {
    font-family: var(--font-title);
    color: var(--rst-neon);
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.alert-rst {
    padding: 14px 18px;
    border-radius: var(--rst-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-success { background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.3); color: #00E676; }
.alert-danger { background: rgba(255, 82, 82, 0.1); border: 1px solid rgba(255, 82, 82, 0.3); color: #FF5252; }
.alert-info { background: rgba(0, 168, 255, 0.1); border: 1px solid rgba(0, 168, 255, 0.3); color: var(--rst-neon); }

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px; left: 20px;
    z-index: 1001;
    background: var(--rst-dark);
    border: 1px solid var(--rst-glass-border);
    color: var(--rst-neon);
    width: 44px; height: 44px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 24px;
}

.flow-step {
    background: rgba(0, 168, 255, 0.08);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: var(--rst-radius-sm);
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    min-width: 120px;
}

.flow-arrow { color: var(--rst-neon); font-size: 1.2rem; }

.pix-copy-field {
    background: rgba(0, 168, 255, 0.05);
    border: 1px dashed rgba(0, 168, 255, 0.3);
    border-radius: var(--rst-radius-sm);
    padding: 14px;
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    color: var(--rst-neon);
    cursor: pointer;
    transition: var(--rst-transition);
}

.pix-copy-field:hover {
    background: rgba(0, 168, 255, 0.1);
    border-color: var(--rst-neon);
}

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: flex; }
    .sidebar-overlay.active { display: block; }
    .main-content { margin-left: 0; padding: 80px 20px 32px; }
    .stat-card .stat-value { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    .auth-card { padding: 32px 24px; }
    .top-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--rst-black); }
::-webkit-scrollbar-thumb { background: rgba(0, 168, 255, 0.3); border-radius: 3px; }

.modal-content {
    background: var(--rst-dark) !important;
    border: 1px solid var(--rst-glass-border) !important;
    border-radius: var(--rst-radius) !important;
}

.modal-header { border-bottom: 1px solid var(--rst-glass-border) !important; }
.modal-footer { border-top: 1px solid var(--rst-glass-border) !important; }
.btn-close { filter: invert(1); }
