/* =========================================
   DappsFactory IO Theme System
   ========================================= */

/* --- DARK THEME (DEFAULT) "Cyber Navy" --- */
:root {
    /* Backgrounds */
    --bg-body: #0b1121;
    /* Deep Navy */
    --bg-card: #151e32;
    --bg-card-hover: #1e2942;
    --bg-input: #0f172a;

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Brand/Accents */
    --primary: #3b82f6;
    /* Electric Blue */
    --primary-hover: #2563eb;
    --accent: #06b6d4;
    /* Neon Cyan */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Borders & Shadows */
    --border-color: #334155;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-neon: 0 0 10px rgba(59, 130, 246, 0.3);

    /* Misc */
    --radius-xl: 40px;
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* --- LIGHT THEME OVERRIDES --- */
[data-theme="light"] {
    /* Backgrounds */
    --bg-body: #f1f5f9;
    /* Slate 100 - slightly darker than pure white for eye ease */
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #e2e8f0;

    /* Text - Enhanced High Contrast */
    --text-primary: #020617;
    /* Slate 950 - Almost black */
    --text-secondary: #334155;
    /* Slate 700 - Much darker than before */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Borders & Shadows */
    --border-color: #cbd5e1;
    --glass-border: rgba(0, 0, 0, 0.15);
    /* Stronger border */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-neon: 0 0 5px rgba(59, 130, 246, 0.2);
}

.link-yellow {
    color: #fbbf24 !important;
    /* Amber 400 */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.link-yellow:hover {
    text-decoration: underline;
    color: #fcd34d !important;
    /* Amber 300 */
}

.sidebar-content .btn,
.sidebar-bottom .btn {
    justify-content: flex-start !important;
}

/* --- GLOBAL RESETS --- */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

/* --- LANDING PAGE --- */
.landing-page {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centrado vertical real */
    background: #050a18;
    overflow: hidden;
    /* Evitar scroll si no es necesario */
    padding: 2rem;
}

/* Permitir scroll si el contenido es mas grande que la pantalla */
@media (max-height: 800px) {
    .landing-page {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 5rem;
    }
}

.landing-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centrar verticalmente el contenido interno */
    min-height: auto;
}

.logo-hero {
    height: 80px;
    margin-top: 4.5rem;
    margin-bottom: 4rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

/* Logo in sidebar */
.logo-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* Logo in mobile header */
.logo-img-sm {
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.3));
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.glitch-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff 20%, #60a5fa 40%, #a855f7 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

/* --- Slide to Verify Component --- */
.verify-container {
    width: 320px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.verify-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.verify-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.verify-slider {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.verify-slider:active {
    cursor: grabbing;
}

.verify-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.verify-container.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.verify-container.success .verify-text {
    color: var(--success);
    opacity: 1;
}

.verify-container.success .verify-slider {
    background: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-hero {
    padding: 1.25rem 3rem !important;
    font-size: 1.1rem !important;
    border-radius: 20px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    perspective: 1000px;
}

.visual-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.visual-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.card-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.visual-img {
    width: 80%;
    height: auto;
    max-width: 320px;
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.4));
}

/* Card Description Styles - Inside the card */
.card-description {
    padding: 0;
    text-align: center;
    max-width: 100%;
}

.card-description-main {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.card-description-details {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.7rem;
    letter-spacing: 0.2px;
}

/* Highlight Styles */
.highlight-text {
    color: #FBBF24;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.highlight-usdc {
    color: #2775CA;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(39, 117, 202, 0.4);
}

.highlight-time {
    color: #10B981;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.highlight-merkle {
    color: #A78BFA;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.landing-footer {
    margin-top: auto;
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- APP LAYOUT --- */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e293b, #0b1121);
    background-attachment: fixed;
}

/* --- MAIN PANEL --- */
.glass-panel {
    width: 100%;
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    /* Neon Blue Border */
    border-radius: 40px !important;
    /* FORCED OVERRULE */
    padding: 3.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(59, 130, 246, 0.2),
        /* External Glow */
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Neon edge effect */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.sidebar {
    width: 300px;
    background: rgba(8, 12, 24, 0.8);
    backdrop-filter: blur(40px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    z-index: 100;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    overflow-y: auto;
}

.mobile-header {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.25rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* SIDE NAV */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 2rem;
}

.side-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    /* Match design */
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.side-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transform: translateX(4px);
}

.side-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.sidebar-bottom {
    margin-top: auto;
}

.btn-logout {
    width: 100%;
    margin-top: 1rem;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.nav-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* SIDEBAR BOTTOM */
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 0.5px;
}

.balances {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-item {
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
}

.balance-item span {
    color: var(--text-primary);
    font-weight: 600;
}

.w-full {
    width: 100%;
}

@media (min-width: 1600px) {
    .glass-panel {
        max-width: 1200px;
    }
}


/* --- COMPONENTS --- */

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

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

/* Typography */
h1,
h2,
h3 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 15px;
    /* More rounded */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}


/* Inputs */
input,
select,
textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
}

th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
    padding: 1.25rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

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

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


/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

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

.badge-warning,
.bg-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

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

.badge-info,
.bg-primary {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    display: none !important;
    /* Ocultar botón de cambio de tema */
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 1rem;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--bg-card-hover);
}

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

.flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal[style*="display: block"],
.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.relayer-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.relayer-card {
    text-align: center;
}

.status-active {
    color: var(--success);
}

.status-busy {
    color: var(--warning);
}

.status-dead {
    color: var(--danger);
}

.truncate-hash {
    font-family: monospace;
    color: #ffffff;
    /* FORCE WHITE for contrast */
    text-decoration: none;
    transition: color 0.2s;
}

.truncate-hash:hover {
    color: var(--accent);
    /* Blue on hover */
    text-decoration: underline;
}

.hash-link {
    color: #ffffff !important;
    text-decoration: none;
}

.amount-usdc {
    color: var(--success);
    font-weight: 700;
}

.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* --- Restricted View --- */
.restricted-card {
    max-width: 500px;
    margin: 100px auto;
    text-align: center;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.restricted-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mt-1 {
    margin-top: 1rem;
}

/* --- Restricted Access Premium UI --- */
.restricted-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: radial-gradient(circle at center, #111827 0%, #050a18 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.restricted-container {
    padding: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.restricted-card-premium {
    max-width: 480px;
    width: 100%;
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.restricted-header {
    position: relative;
    margin-bottom: 2rem;
}

.lock-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.status-pulse {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.neon-text-blue {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.restricted-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.info-box-premium {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-box-premium p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.badge-address-restricted {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

/* Sidebar Wallet Info Enhancements */
.address-container-sidebar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-address-link {
    color: #60a5fa;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.badge-address-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.btn-icon-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-icon-copy:hover {
    opacity: 1;
    transform: scale(1.1);
}

.unit-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 4px;
    font-weight: 500;
}

/* Sidebar Wallet Labels */
.wallet-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.restricted-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .glass-panel {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        display: none;
        /* Mobile menu hidden by default */
        width: 100%;
        height: auto;
        position: fixed;
    }

    .mobile-header {
        display: flex;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .glass-panel {
        max-width: 100%;
        padding: 1rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

/* --- SUMMARY MODAL --- */
.summary-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-modal.active {
    display: flex;
    opacity: 1;
}

.summary-content {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2), inset 0 0 20px rgba(59, 130, 246, 0.05);
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.summary-modal.active .summary-content {
    transform: scale(1);
}

/* Confetti-like decoration */
.summary-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.summary-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.summary-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.summary-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-value.highlight {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.summary-value.success {
    color: #10b981;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.balance-row:last-child {
    border-bottom: none;
}

.summary-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-close-summary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-close-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

/* Button State: Completed */
.btn-completed {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5) !important;
    cursor: default !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
}

/* --- FILTER BAR --- */
.filter-bar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Adjust date input icon color filter if needed, though browser default is usually ok */
.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* Helper for mobile stacking */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        min-width: 0;
    }
}

/* --- FILE UPLOAD & BALANCE ALERTS --- */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-label {
    cursor: pointer;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

.file-name-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-alert-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
}

.balance-alert-icon {
    font-size: 1.5rem;
}

.balance-alert-content h4 {
    color: #ef4444;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.balance-alert-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- USER MANAGEMENT --- */
#userManagementSection {
    padding: 1rem;
}

#usersTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
}

#usersTable th,
#usersTable td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#usersTable th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 500;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-operator {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-registered {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-denied {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Registration Form Tweaks */
.registration-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hidden {
    display: none !important;
}