/* Own Stresser - All UI in English */
:root {
    /* Cambiar esta variable para cambiar la fuente de toda la web */
    --font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    min-height: 100vh;
    background: #0f0f12;
    color: #e4e4e7;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Lightning background – cinematic, subtle (site-wide) */
.rays-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.rays-bg svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.rays-bg .bolt-glow {
    fill: none;
    stroke: rgba(129, 140, 248, 0.5);
    stroke-width: 24;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    filter: blur(12px);
    animation: lightningGlow 4s ease-in-out infinite;
}
.rays-bg .bolt {
    fill: none;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    animation: lightningStroke 4s ease-in-out infinite;
}
.rays-bg .bolt-branch {
    fill: none;
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 0.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    animation: lightningStroke 4s ease-in-out infinite;
}
.rays-bg .lightning-1 .bolt-glow,
.rays-bg .lightning-1 .bolt,
.rays-bg .lightning-1 .bolt-branch { animation-delay: 0s; }
.rays-bg .lightning-2 .bolt-glow,
.rays-bg .lightning-2 .bolt,
.rays-bg .lightning-2 .bolt-branch { animation-delay: 0.9s; }
.rays-bg .lightning-3 .bolt-glow,
.rays-bg .lightning-3 .bolt,
.rays-bg .lightning-3 .bolt-branch { animation-delay: 1.8s; }
.rays-bg .lightning-4 .bolt-glow,
.rays-bg .lightning-4 .bolt,
.rays-bg .lightning-4 .bolt-branch { animation-delay: 2.7s; }
@keyframes lightningGlow {
    0%, 48%, 52%, 98%, 100% { opacity: 0; }
    49% { opacity: 0.4; }
    49.3% { opacity: 0; }
    99% { opacity: 0.4; }
    99.3% { opacity: 0; }
}
@keyframes lightningStroke {
    0%, 48%, 52%, 98%, 100% { opacity: 0; }
    48.8% { opacity: 0; }
    49% { opacity: 1; }
    49.15% { opacity: 0.3; }
    49.3% { opacity: 1; }
    49.5% { opacity: 0; }
    98.8% { opacity: 0; }
    99% { opacity: 1; }
    99.15% { opacity: 0.3; }
    99.3% { opacity: 1; }
    99.5% { opacity: 0; }
}
body .page-wrapper {
    position: relative;
    z-index: 1;
}

/* Auth (login, register) - matches dashboard theme */
.auth-container {
    min-height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
                #0f0f12;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98) 0%, rgba(20, 20, 24, 0.99) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.auth-title {
    margin: 0 0 0.25rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0 0 1.75rem;
    color: #a1a1aa;
    font-size: 0.95rem;
}

.auth-redirect-msg {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.auth-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d4d4d8;
}

.auth-form input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.8);
    border-radius: 10px;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.auth-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-form input[type="number"] {
    max-width: 120px;
}

.auth-form .checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.auth-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
    order: -1;
    accent-color: #6366f1;
}

.auth-form .checkbox-label span {
    order: 0;
}

.auth-footer {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(63, 63, 70, 0.5);
    text-align: center;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.auth-footer a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #a5b4fc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.8rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

/* Dashboard layout (Goliath Services) */
body.dashboard-page {
    margin: 0;
}

.app-layout {
    display: flex;
    min-height: 100%;
    flex: 1;
}

.sidebar {
    position: relative;
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.98) 0%, rgba(18, 18, 22, 0.99) 100%);
    border-right: 1px solid rgba(63, 63, 70, 0.5);
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    transition: width 0.2s, min-width 0.2s, padding 0.2s;
    overflow: visible;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    pointer-events: none;
}

.sidebar.is-hidden {
    width: 0;
    min-width: 0;
    padding: 0;
    border-right-width: 0;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 56px;
    min-width: 56px;
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.5rem 1rem 1.25rem;
    margin: 0 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.sidebar-brand:hover {
    color: #a5b4fc;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.12));
    border-color: rgba(99, 102, 241, 0.35);
}

.sidebar-brand-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #a78bfa;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.2));
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    padding: 0 0.75rem;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 1rem 0.75rem 0;
    border-top: 1px solid rgba(63, 63, 70, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #a1a1aa;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.sidebar-link-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.sidebar-link:hover {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
}

.sidebar-lang-wrap {
    position: relative;
}

.sidebar-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    font-size: 0.9rem;
    color: #a1a1aa;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    text-align: left;
    font-family: inherit;
}

.sidebar-lang-btn:hover {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
}

.sidebar-lang-label {
    flex: 1;
}

.sidebar-lang-arrow {
    font-size: 0.7rem;
    opacity: 0.8;
}

.sidebar-lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.25rem;
    background: #27272a;
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    padding: 0.35rem;
    z-index: 100;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.sidebar-lang-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sidebar-lang-dropdown[hidden] {
    display: block !important;
    visibility: hidden;
}

.sidebar-lang-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #e4e4e7;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}

.sidebar-lang-option:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
}

.sidebar-user-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.85rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6), rgba(24, 24, 27, 0.8));
    border-radius: 12px;
    border: 1px solid rgba(63, 63, 70, 0.4);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #a1a1aa;
}

.sidebar-user-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.25rem;
}

.sidebar-user-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    opacity: 0.85;
}

.sidebar-username {
    color: #f4f4f5;
    font-weight: 600;
}

.sidebar-balance {
    color: #34d399;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.sidebar-user-actions {
    position: relative;
    align-self: flex-end;
    margin-top: -2rem;
}

.btn-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(63, 63, 70, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    color: #a1a1aa;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-dots:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
}

.dots-icon {
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.sidebar-user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 6px;
    min-width: 160px;
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom left;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.sidebar-user-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sidebar-user-dropdown[hidden] {
    display: none !important;
}

.sidebar-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #e4e4e7;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar-user-dropdown a:first-child {
    border-radius: 12px 12px 0 0;
}

.sidebar-user-dropdown a:last-child {
    border-radius: 0 0 12px 12px;
}

.sidebar-user-dropdown .dropdown-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.sidebar-user-dropdown a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #fff;
}

.sidebar-nav .nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #52525b;
    padding: 0.6rem 0.75rem 0.35rem;
    font-weight: 600;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    margin: 0.15rem 0;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav .nav-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #71717a;
    background: rgba(39, 39, 42, 0.5);
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav .nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #e4e4e7;
}

.sidebar-nav .nav-item:hover .nav-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.12));
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.sidebar-nav .nav-item.active .nav-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.3));
    color: #fff;
}

.main-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98) 0%, rgba(20, 20, 24, 0.95) 100%);
    border-bottom: 1px solid rgba(63, 63, 70, 0.5);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    color: #e4e4e7;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sidebar-trigger:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
}

.sidebar-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.dashboard-topbar .dashboard-online-badge {
    margin-left: 0.5rem;
}

.dashboard-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(6, 78, 59, 0.4);
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 999px;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dashboard-online-badge:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.6);
    color: #4ade80;
}

.dashboard-online-badge svg {
    flex-shrink: 0;
}

.top-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #18181b;
    border-bottom: 1px solid #27272a;
}

.btn-toggle-sidebar {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    color: #e4e4e7;
    cursor: pointer;
}

.btn-toggle-sidebar:hover {
    background: #3f3f46;
}

.header-brand {
    font-weight: 600;
    color: #fff;
}

.header-user {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.header-balance {
    color: #86efac;
    font-weight: 500;
}

.header-logout {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.header-logout:hover {
    background: #27272a;
    color: #fbbf24;
}

.dashboard-main {
    flex: 1;
    padding: 1.75rem 1.5rem;
    overflow: auto;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.08), transparent),
                radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.04), transparent);
}

.dashboard-title {
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.dashboard-intro {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #a1a1aa;
}

/* Deposit page */
.deposit-page {
    padding: 1.75rem 1.5rem;
    max-width: 560px;
}

.messages-page {
    padding: 1.5rem;
}

.messages-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.messages-empty {
    color: var(--text-muted, #71717a);
}

.messages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.messages-item {
    background: var(--card-bg, #252736);
    border: 1px solid var(--border, #3f3f50);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.messages-item.is-read {
    opacity: 0.85;
}

.messages-item-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.messages-from {
    font-size: 0.875rem;
    color: var(--text-muted, #a1a1aa);
}

.messages-date {
    font-size: 0.8125rem;
    color: var(--text-muted, #71717a);
}

.messages-body {
    font-size: 0.9375rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Floating private message toasts - top center on any page */
.floating-messages {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 360px;
    width: 100%;
    padding: 0 1rem;
    pointer-events: none;
}

.floating-messages .floating-message-toast {
    pointer-events: auto;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: floating-message-in 0.3s ease-out;
}

.floating-message-toast.is-closing {
    animation: floating-message-out 0.3s ease-in forwards;
}

@keyframes floating-message-in {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating-message-out {
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.floating-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.floating-message-from {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
}

.floating-message-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    border-radius: 4px;
}

.floating-message-close:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
}

.floating-message-body {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.floating-message-date {
    font-size: 0.75rem;
    color: #64748b;
}

.deposit-title {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.deposit-intro {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.deposit-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s, box-shadow 0.2s;
}

.deposit-contact-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* Choose Your Plan page */
.dashboard-main.plans-page {
    padding: 1.5rem;
}

.plans-heading {
    margin: 0 0 1.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: -0.02em;
}

.plans-empty {
    margin: 0;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #a1a1aa;
    background: rgba(39, 39, 42, 0.3);
    border-radius: 16px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plan-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.plan-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.plan-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.plan-card-subtitle {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.plan-card-price {
    margin: 0 0 1.25rem;
}

.plan-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #818cf8;
}

.plan-price-period {
    font-size: 0.95rem;
    color: #a1a1aa;
    margin-left: 0.15rem;
}

.plan-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    width: 100%;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #e4e4e7;
}

.plan-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #71717a;
}

.plan-feature-yes .plan-feature-icon {
    color: #34d399;
}

.plan-feature-no .plan-feature-icon {
    color: #71717a;
}

.plan-feature-no {
    color: #71717a;
}

.plan-select-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.plan-select-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Buy plan modal (floating) */
.plan-buy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.plan-buy-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.plan-buy-modal-overlay[hidden] {
    display: none !important;
}
.plan-buy-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98) 0%, rgba(20, 20, 24, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s ease;
}
.plan-buy-modal-overlay.is-open .plan-buy-modal {
    transform: scale(1) translateY(0);
}

.plan-buy-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #a1a1aa;
    background: rgba(39, 39, 42, 0.6);
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.plan-buy-modal-close:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

/* Buy with my balance page */
.plan-buy-page {
    padding: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.plan-buy-heading {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.plan-buy-message {
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.plan-buy-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.plan-buy-success-msg {
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    color: #34d399;
    border: 1px solid rgba(34, 211, 153, 0.35);
}

.plan-buy-card {
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.6), rgba(24, 24, 27, 0.8));
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
}

.plan-buy-plan-name {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.plan-buy-price {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #818cf8;
}

.plan-buy-period {
    font-size: 0.95rem;
    font-weight: 400;
    color: #a1a1aa;
}

.plan-buy-balance {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #a1a1aa;
}

.plan-buy-form {
    margin: 0 0 1rem;
}

.plan-buy-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.plan-buy-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.plan-buy-insufficient {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #a1a1aa;
}

.plan-buy-insufficient a {
    color: #818cf8;
}

.plan-buy-back {
    margin: 0;
    font-size: 0.9rem;
}

.plan-buy-back a {
    color: #818cf8;
}

.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .dashboard-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.95) 0%, rgba(39, 39, 42, 0.9) 100%);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.dashboard-card:nth-child(2)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.dashboard-card:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dashboard-card:nth-child(4)::before { background: linear-gradient(90deg, #10b981, #34d399); }

.dashboard-card:nth-child(1) { animation: dashboard-card-in 0.4s ease forwards; }
.dashboard-card:nth-child(2) { animation: dashboard-card-in 0.4s ease 0.05s forwards; opacity: 0; }
.dashboard-card:nth-child(3) { animation: dashboard-card-in 0.4s ease 0.1s forwards; opacity: 0; }
.dashboard-card:nth-child(4) { animation: dashboard-card-in 0.4s ease 0.15s forwards; opacity: 0; }

@keyframes dashboard-card-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    border: none;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.dashboard-card-badge-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.9;
}

.dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-card-title-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
}

.dashboard-card:nth-child(1) .dashboard-card-title-icon { background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(96, 165, 250, 0.3)); }
.dashboard-card:nth-child(2) .dashboard-card-title-icon { background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(167, 139, 250, 0.3)); }
.dashboard-card:nth-child(3) .dashboard-card-title-icon { background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(251, 191, 36, 0.3)); }
.dashboard-card:nth-child(4) .dashboard-card-title-icon { background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(52, 211, 153, 0.3)); }

.dashboard-card-value {
    margin: 1rem 0 0;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    font-feature-settings: "tnum";
}

/* Two cards row: Latest News + Account Info */
.dashboard-two-cards {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 1.5rem;
    margin-top: 1.75rem;
}

@media (max-width: 900px) {
    .dashboard-two-cards {
        grid-template-columns: 1fr;
    }
}

/* Latest News / Updates card */
.dashboard-news-card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-news-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-news-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.dashboard-news-title-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #a78bfa;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.15));
}

.dashboard-news-scroll {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.dashboard-news-scroll::-webkit-scrollbar {
    width: 6px;
}

.dashboard-news-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.dashboard-news-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.dashboard-news-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.dashboard-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 2.75rem;
}

/* Timeline vertical line (only when there are items) */
.dashboard-news-list.has-items::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.3));
    border-radius: 1px;
}

.dashboard-news-list:not(.has-items) {
    padding-left: 0;
}

.dashboard-news-empty {
    margin: 0;
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    color: #71717a;
    text-align: center;
    background: rgba(39, 39, 42, 0.3);
    border-radius: 12px;
}

.dashboard-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(63, 63, 70, 0.4);
    position: relative;
    transition: background 0.15s ease;
}

.dashboard-news-item:hover {
    background: rgba(39, 39, 42, 0.2);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 10px;
}

.dashboard-news-item:last-child {
    border-bottom: none;
}

/* Circular icon on timeline */
.dashboard-news-item-icon-wrap {
    position: absolute;
    left: -2.75rem;
    top: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.dashboard-news-item-icon .news-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
}

.dashboard-news-item-icon .news-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    color: #fff;
}

.dashboard-news-item-icon .news-icon-code { background: #3f3f46; color: #e4e4e7; }
.dashboard-news-item-icon .news-icon-target { background: #6d28d9; color: #fff; }
.dashboard-news-item-icon .news-icon-gift { background: #b45309; color: #fff; }
.dashboard-news-item-icon .news-icon-info { background: #1d4ed8; color: #fff; }
.dashboard-news-item-icon .news-icon-alert,
.dashboard-news-item-icon .news-icon-star { background: #b45309; color: #fff; }
.dashboard-news-item-icon .news-icon-megaphone { background: #15803d; color: #fff; }
.dashboard-news-item-icon .news-icon-newspaper { background: #1d4ed8; color: #fff; }
.dashboard-news-item-icon .news-icon-bell { background: #6d28d9; color: #fff; }
.dashboard-news-item-icon .news-icon-heart { background: #b91c1c; color: #fff; }

.dashboard-news-item-body {
    flex: 1;
    min-width: 0;
}

.dashboard-news-item-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #f4f4f5;
    letter-spacing: -0.01em;
}

.dashboard-news-item-meta {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #71717a;
    letter-spacing: 0.02em;
}

.dashboard-news-author {
    color: #60a5fa;
    font-weight: 500;
}

.dashboard-news-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    border-radius: 4px;
    vertical-align: middle;
}

.dashboard-news-item-message {
    margin: 0;
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.dashboard-news-item-message br {
    display: block;
    content: "";
    margin-top: 0.25rem;
}

/* Account Info card */
.dashboard-account-card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-account-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-account-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.dashboard-account-title-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #60a5fa;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.15));
}

.dashboard-account-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dashboard-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 0.6rem 0.85rem;
    background: rgba(39, 39, 42, 0.4);
    border-radius: 10px;
    transition: background 0.15s ease;
}

.dashboard-account-row:hover {
    background: rgba(39, 39, 42, 0.6);
}

.dashboard-account-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a1a1aa;
}

.dashboard-account-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    opacity: 0.9;
}

.dashboard-account-value {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f4f4f5;
}

.dashboard-account-value--admin {
    color: #f87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}

/* ========== Profile page ========== */
.profile-header-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}

.profile-avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #34d399;
    border: 2px solid rgba(24, 24, 27, 0.98);
}

.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.profile-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.profile-verified {
    display: inline-flex;
    color: #3b82f6;
}

.profile-role-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: #6366f1;
    border-radius: 999px;
}

.profile-role-pill.profile-role-free {
    background: rgba(82, 82, 91, 0.8);
    color: #e4e4e7;
}

.profile-role-pill.profile-role-basico {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.profile-role-pill.profile-role-admin {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.profile-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #a1a1aa;
}

.profile-meta-item svg {
    flex-shrink: 0;
    color: #71717a;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 700px) {
    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: rgba(39, 39, 42, 0.5);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.profile-stat-card:hover {
    background: rgba(39, 39, 42, 0.7);
    border-color: rgba(99, 102, 241, 0.3);
}

.profile-stat-icon {
    display: inline-flex;
    width: fit-content;
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: #a1a1aa;
}

.profile-stat-days .profile-stat-icon { color: #22c55e; }
.profile-stat-l4 .profile-stat-icon { color: #ef4444; }
.profile-stat-l7 .profile-stat-icon { color: #3b82f6; }
.profile-stat-api .profile-stat-icon { color: #f97316; }

.profile-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

.profile-tab {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.profile-tab:hover {
    color: #e4e4e7;
    background: rgba(99, 102, 241, 0.08);
}

.profile-tab.is-active {
    color: #a5b4fc;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.profile-tab-panel--hidden {
    display: none;
}

.profile-details-card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.profile-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-details-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.btn-profile-edit {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-profile-edit:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.profile-details-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

@media (max-width: 600px) {
    .profile-details-list {
        grid-template-columns: 1fr;
    }
}

.profile-details-row {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    grid-column: span 1;
}

.profile-details-key {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a1a1aa;
}

.profile-details-value {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.profile-edit-msg {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
}
.profile-edit-msg.profile-edit-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    color: #34d399;
    border: 1px solid rgba(34, 211, 153, 0.35);
}
.profile-edit-msg.profile-edit-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.profile-edit-form {
    margin: 0;
}
.profile-edit-row {
    margin-bottom: 1rem;
}
.profile-edit-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a1a1aa;
}
.profile-edit-optional {
    font-weight: 400;
    color: #71717a;
}
.profile-edit-input {
    width: 100%;
    max-width: 320px;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    color: #fff;
}
.profile-edit-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.profile-edit-actions {
    margin-top: 1.25rem;
}

.profile-billing-empty {
    margin: 0;
    font-size: 0.95rem;
    color: #a1a1aa;
}
.profile-billing-empty a {
    color: #818cf8;
    text-decoration: none;
}
.profile-billing-empty a:hover {
    text-decoration: underline;
}
.profile-billing-table-wrap {
    overflow-x: auto;
}
.profile-billing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.profile-billing-table th,
.profile-billing-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(63, 63, 70, 0.4);
}
.profile-billing-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
}
.profile-billing-table td {
    color: #e4e4e7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 1.25rem;
}

.stat-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a1a1aa;
}

.stat-card .stat-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.stat-card .stat-change {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.stat-card .stat-change.stat-up {
    color: #86efac;
}

.stat-card .stat-desc {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #71717a;
}

.stat-card .stat-meta {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #52525b;
}

.announcements {
    margin-bottom: 2rem;
}

.announcements h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.announcements-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.announce-list-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #3f3f46 #18181b;
}

.announce-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.announce-list-scroll::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 4px;
}

.announce-list-scroll::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

.announce-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

.announce-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announce-item {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 1.25rem;
}

.announce-item h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.announce-item time {
    display: block;
    font-size: 0.8rem;
    color: #71717a;
    margin-bottom: 0.5rem;
}

.announce-item p,
.announce-item ul {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.announce-item ul {
    padding-left: 1.25rem;
}

.announce-item code {
    font-size: 0.85rem;
    background: #27272a;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

.announce-item a {
    color: #818cf8;
    text-decoration: none;
}

.announce-item a:hover {
    text-decoration: underline;
}

.info-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 360px;
}

.info-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.info-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.info-list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.5rem;
}

.info-list dt {
    font-size: 0.85rem;
    color: #71717a;
    font-weight: 400;
}

.info-list dd {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
}

.info-card .btn {
    display: inline-block;
    margin-top: 0.5rem;
}

/* ========== Admin dashboard ========== */
.admin-income-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 700px) {
    .admin-income-cards {
        grid-template-columns: 1fr;
    }
}

.admin-income-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-income-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7dd3fc;
    line-height: 1;
}

.admin-income-value {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
}

.admin-income-label {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.admin-section {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section-title {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #e4e4e7;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 500px) {
    .admin-form-row {
        grid-template-columns: 1fr;
    }
}

.admin-form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e4e4e7;
}

.admin-form-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #fff;
    max-width: 320px;
}

.admin-form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.admin-form-input::placeholder {
    color: #71717a;
}

.admin-form-select {
    cursor: pointer;
    max-width: 200px;
}

.admin-form-actions {
    margin-top: 0.5rem;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.admin-btn:hover {
    background: #2563eb;
}

.admin-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== Attacks Panel (Panel + Your Attacks) ========== */
.attacks-panel-wrap {
    padding: 1.75rem 1.5rem;
}

.attacks-two-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0;
    align-items: start;
}

@media (max-width: 960px) {
    .attacks-two-panels {
        grid-template-columns: 1fr;
    }
}

.attacks-panel-card,
.attacks-list-card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 0;
    animation: attacks-card-in 0.4s ease forwards;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.attacks-panel-card:hover,
.attacks-list-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.attacks-panel-card {
    align-self: start;
    position: relative;
    overflow: visible;
}

.attacks-panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.attacks-list-card {
    position: relative;
    overflow: hidden;
    animation-delay: 0.08s;
    opacity: 0;
}

.attacks-list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 16px 16px 0 0;
}

@keyframes attacks-card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attacks-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.attacks-panel-header-left {
    min-width: 0;
}

.attacks-panel-title,
.attacks-list-title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.attacks-panel-subtitle,
.attacks-list-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.attacks-panel-header .attacks-network-toggle {
    flex-shrink: 0;
}

.attacks-panel-msg {
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.attacks-panel-msg.attacks-msg-visible {
    opacity: 1;
    transform: translateY(0);
}

.attacks-panel-msg-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 153, 0.1));
    color: #34d399;
    border: 1px solid rgba(34, 211, 153, 0.35);
}

.attacks-panel-msg-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.attacks-advanced-info-msg {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.08));
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
    opacity: 1;
    transform: none;
}

/* Panel form */
.attacks-panel-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attacks-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.attacks-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a1a1aa;
}

.attacks-form-input,
.attacks-form-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.attacks-form-input:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.attacks-form-input:focus,
.attacks-form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.attacks-form-input::placeholder {
    color: #71717a;
}

.attacks-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

/* Custom dropdown (Method, Geolocation) with open animation */
.attacks-select-wrap {
    position: relative;
    width: 100%;
}

.attacks-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.attacks-select-trigger:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.attacks-select-wrap.is-open .attacks-select-trigger {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.attacks-select-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attacks-select-chevron {
    flex-shrink: 0;
    margin-left: 0.5rem;
    font-size: 0.65rem;
    color: #a1a1aa;
    transition: transform 0.2s ease;
}

.attacks-select-wrap.is-open .attacks-select-chevron {
    transform: rotate(180deg);
    color: #e4e4e7;
}

.attacks-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    transform: translateY(-8px);
    transform-origin: top;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.attacks-select-wrap.is-open .attacks-select-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 900px) {
    .attacks-select-wrap.is-open .attacks-select-dropdown {
        z-index: 10000;
    }
    /* So that the Panel card (and its dropdowns) sits above the Your Attacks card */
    .attacks-panel-card.attacks-panel-card--dropdown-open {
        z-index: 100;
        position: relative;
    }
}

.attacks-select-option {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    color: #e4e4e7;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.attacks-select-option:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #fff;
}

.attacks-select-option:first-child {
    border-radius: 12px 12px 0 0;
}

.attacks-select-option:last-child {
    border-radius: 0 0 12px 12px;
}

.attacks-select-option--locked {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    color: #71717a;
}

.attacks-select-option--premium-label {
    color: #34d399 !important;
    font-weight: 600;
}

.attacks-select-option--premium-label:hover {
    color: #6ee7b7 !important;
    background: rgba(16, 185, 129, 0.15);
}

.attacks-select-option--premium-label.attacks-select-option--locked {
    color: #22c55e !important;
}

.attacks-select-option--vip {
    position: relative;
    padding-right: 2.5rem;
}

.attacks-method-vip-tag {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.18);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    line-height: 1.2;
}

.attacks-select-option-label {
    display: block;
}

.attacks-select-group-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #22c55e;
    cursor: default;
    pointer-events: none;
    background: transparent;
}

.attacks-select-separator {
    height: 0;
    margin: 0.35rem 0.75rem;
    border-top: 1px solid rgba(63, 63, 70, 0.6);
    pointer-events: none;
}

.attacks-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.attacks-l7-options {
    margin-top: 0.25rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.28s ease, max-height 0.35s ease;
}

.attacks-l7-options.is-visible {
    max-height: 220px;
    opacity: 1;
    overflow: visible;
}

.attacks-l7-options .attacks-form-row {
    margin-bottom: 0;
}

/* Network L4 / L7 toggle */
.attacks-network-toggle {
    display: flex;
    gap: 0.5rem;
}

.attacks-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a1a1aa;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.attacks-toggle-btn:hover {
    color: #e4e4e7;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.attacks-toggle-btn:active {
    transform: scale(0.98);
}

.attacks-toggle-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.3));
    border-color: rgba(99, 102, 241, 0.5);
}

.attacks-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Concurrents slider */
.attacks-concurrents-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attacks-concurrents-slider {
    flex: 1;
    height: 8px;
    accent-color: #6366f1;
    background: rgba(39, 39, 42, 0.6);
    border-radius: 4px;
}

.attacks-concurrents-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a1a1aa;
    min-width: 2.5rem;
}

/* Auto repeat attack */
.attacks-auto-repeat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(63, 63, 70, 0.5);
}

.attacks-auto-repeat-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.attacks-auto-repeat-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #6366f1;
    cursor: pointer;
}

.attacks-auto-repeat-label {
    font-size: 0.95rem;
    color: #e4e4e7;
}

.attacks-auto-repeat-interval-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attacks-auto-repeat-interval-wrap .attacks-form-select {
    min-width: 140px;
    padding: 0.5rem 0.75rem;
}

.attacks-auto-repeat-active-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
}

.attacks-auto-repeat-countdown {
    font-size: 0.9rem;
    color: #a5b4fc;
    font-weight: 500;
}

.attacks-auto-repeat-stop-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.attacks-auto-repeat-stop-btn:hover {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(248, 113, 113, 0.5);
}

.attacks-auto-repeat-server-banner {
    margin-bottom: 0.5rem;
}

/* Start button */
.attacks-start-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.attacks-start-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.attacks-start-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.attacks-start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #3f3f46;
}

.attacks-start-btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.attacks-loading-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: attacks-loading-spin 0.7s linear infinite;
}

@keyframes attacks-loading-spin {
    to { transform: rotate(360deg); }
}

/* Your Attacks toolbar */
.attacks-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.attacks-filter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.attacks-filter-input {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    color: #fff;
}

.attacks-filter-input::placeholder {
    color: #71717a;
}

.attacks-filter-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.attacks-filter-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(124, 58, 237, 0.6));
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.attacks-filter-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(124, 58, 237, 0.8));
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.attacks-stop-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.attacks-stop-all-btn:hover:not(.is-disabled) {
    background: rgba(63, 63, 70, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

.attacks-stop-all-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.attacks-stop-all-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Attacks table */
.attacks-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.attacks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.attacks-table tbody tr {
    transition: background 0.2s ease;
}

.attacks-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}

.attacks-table tbody tr.attacks-row-new {
    animation: attacks-row-in 0.35s ease forwards;
}

@keyframes attacks-row-in {
    from {
        opacity: 0;
        background: rgba(99, 102, 241, 0.08);
    }
    to {
        opacity: 1;
        background: transparent;
    }
}

.attacks-th,
.attacks-td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(63, 63, 70, 0.4);
}

.attacks-th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
}

.attacks-th a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.15s;
}

.attacks-th a:hover {
    color: #a5b4fc;
    text-decoration: none;
}

.attacks-sort-arrow {
    margin-left: 0.25rem;
    font-size: 0.8rem;
    color: #6366f1;
}

.attacks-td {
    color: #e4e4e7;
    font-size: 0.9rem;
}

.attacks-th-target,
.attacks-td-target {
    max-width: 220px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.attacks-td-target::-webkit-scrollbar {
    height: 6px;
}

.attacks-td-target::-webkit-scrollbar-track {
    background: rgba(63, 63, 70, 0.3);
    border-radius: 3px;
}

.attacks-td-target::-webkit-scrollbar-thumb {
    background: #52525b;
    border-radius: 3px;
}

.attacks-td-target::-webkit-scrollbar-thumb:hover {
    background: #71717a;
}

.attacks-td-status {
    min-width: 100px;
}

.attacks-status-text {
    display: block;
    margin-bottom: 0.35rem;
}

.attacks-timebar-wrap {
    height: 6px;
    background: rgba(63, 63, 70, 0.6);
    border-radius: 3px;
    overflow: hidden;
}

.attacks-timebar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 3px;
    transition: width 1s linear;
}

.attacks-empty {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #71717a;
    font-size: 0.95rem;
}

/* Attacks pagination */
.attacks-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.attacks-pagination-info {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.attacks-pagination {
    display: flex;
    gap: 0.25rem;
}

.attacks-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e4e4e7;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.attacks-page-link:hover:not([aria-disabled="true"]) {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

.attacks-page-link[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

/* ========== API Access page ========== */
.api-access-wrap {
    padding: 1.75rem 1.5rem;
    max-width: 1400px;
}

.api-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.api-access-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.api-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.api-list-methods-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e4e4e7;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.api-list-methods-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
}

.api-list-methods-chevron {
    font-size: 0.7rem;
    opacity: 0.8;
    transition: transform 0.2s;
}

.api-list-methods-btn[aria-expanded="true"] .api-list-methods-chevron {
    transform: rotate(180deg);
}

.api-list-methods-dropdown {
    width: 100%;
    max-width: 800px;
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.api-list-methods-dropdown[hidden] {
    display: none;
}

.api-list-methods-section {
    margin-bottom: 1.5rem;
}

.api-list-methods-section:last-child {
    margin-bottom: 0;
}

.api-list-methods-section-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #818cf8;
}

.api-list-methods-empty {
    margin: 0;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.api-list-methods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.api-list-methods-table th,
.api-list-methods-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #27272a;
}

.api-list-methods-table th {
    color: #a1a1aa;
    font-weight: 500;
}

.api-list-methods-table td {
    color: #e4e4e7;
}

.api-list-methods-table code {
    background: #27272a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.api-method-vip-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 4px;
    vertical-align: middle;
}

.api-usage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.api-usage-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    color: #fff;
}

.api-usage-icon {
    font-size: 1rem;
}

.api-no-access {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #a1a1aa;
}

.api-msg {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.api-msg-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
    border: 1px solid rgba(34, 211, 153, 0.35);
    color: #34d399;
}

.api-msg-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.api-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

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

/* Generate Key card */
.api-generate-card,
.api-manage-card,
.api-links-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.98) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.api-generate-card::before,
.api-manage-card::before,
.api-links-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.api-card-title {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.api-form-group {
    margin-bottom: 1.25rem;
}

.api-form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a1a1aa;
}

.api-form-input {
    display: block;
    width: 100%;
    max-width: 200px;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.api-form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.api-form-input-readonly {
    cursor: default;
    pointer-events: none;
}

/* Sliders */
.api-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 280px;
    height: 18px;
    background: transparent;
    margin-top: 0.25rem;
    padding: 0;
}

.api-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.api-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(to right, #6366f1 0%, #6366f1 var(--slider-pct, 20%), rgba(39, 39, 42, 0.6) var(--slider-pct, 20%));
    border-radius: 4px;
}

.api-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.api-slider::-moz-range-track {
    height: 8px;
    background: rgba(39, 39, 42, 0.6);
    border-radius: 4px;
}

.api-form-textarea {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 10px;
    color: #fff;
    resize: vertical;
    min-height: 80px;
}

.api-form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.api-form-note {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #a1a1aa;
}

/* Allow all methods row + toggle */
.api-form-row-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.api-toggle-wrap {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.api-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.api-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 24px;
    transition: 0.25s;
}

.api-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
}

.api-toggle:checked + .api-toggle-slider {
    background: #6366f1;
    border-color: #7c3aed;
}

.api-toggle:checked + .api-toggle-slider::before {
    transform: translateX(20px);
}

.api-form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.api-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.api-generate-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.api-generate-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Right column: Manage Key + API Links */
.api-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Manage Key table */
.api-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.api-th {
    text-align: left;
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
    font-weight: 600;
    border-bottom: 1px solid rgba(63, 63, 70, 0.4);
}

.api-th a {
    color: #a1a1aa;
    text-decoration: none;
}

.api-th a:hover {
    color: #a5b4fc;
}

.api-sort-arrow {
    margin-left: 0.25rem;
    color: #6366f1;
}

.api-td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(63, 63, 70, 0.4);
    color: #e4e4e7;
}

.api-td-key {
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
}

.api-empty {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #71717a;
}

.api-td-actions {
    white-space: nowrap;
}

.api-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.api-action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.api-action-settings {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
}

.api-action-delete {
    background: #dc2626;
    color: #fff;
}

.api-action-toggle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.api-action-btn + .api-action-btn {
    margin-left: 0.35rem;
}

/* API pagination */
.api-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.api-pagination-info {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.api-pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.api-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e4e4e7;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.api-page-link:hover:not([aria-disabled="true"]) {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

.api-page-link[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.api-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    border-radius: 10px;
}

/* API Links card */
.api-links-card .api-form-textarea.api-link-value {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    min-height: 60px;
}

/* API Usage modal */
.api-usage-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.api-usage-modal-overlay[hidden] {
    display: none;
}

.api-usage-modal {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98) 0%, rgba(20, 20, 24, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.api-usage-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

.api-usage-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.api-usage-modal-close-x {
    background: rgba(39, 39, 42, 0.6);
    border: none;
    color: #a1a1aa;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.api-usage-modal-close-x:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

.api-usage-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

.api-usage-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.api-usage-section {
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.api-usage-section-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: rgba(39, 39, 42, 0.6);
    border: none;
    color: #e4e4e7;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.api-usage-section-head:hover {
    background: rgba(99, 102, 241, 0.1);
}

.api-usage-method-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.api-usage-section-body {
    padding: 1rem;
    background: rgba(24, 24, 27, 0.5);
}

.api-usage-section-body-collapsed {
    display: none;
}

.api-usage-url-label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.api-usage-url-wrap {
    padding: 0.6rem 0.75rem;
    background: #27272a;
    border-radius: 8px;
    margin-bottom: 1rem;
    word-break: break-all;
}

.api-usage-url {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    color: #e4e4e7;
}

.api-usage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.api-usage-table th,
.api-usage-table td {
    padding: 0.4rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #27272a;
}

.api-usage-table th {
    color: #a1a1aa;
    font-weight: 500;
}

.api-usage-table td {
    color: #e4e4e7;
}

.api-usage-table code {
    background: #27272a;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.api-usage-note {
    margin: 0;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.api-usage-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #27272a;
    display: flex;
    justify-content: flex-end;
}

.api-usage-modal-close-btn {
    padding: 0.5rem 1.25rem;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.api-usage-modal-close-btn:hover {
    background: #b91c1c;
}

/* ========== Mobile / responsive ========== */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 992px) {
    .sidebar-backdrop {
        display: block;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    body.sidebar-open .sidebar-backdrop {
        pointer-events: auto;
        opacity: 1;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;
        width: 260px;
        min-width: 260px;
        transform: translateX(-100%);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        box-shadow: none;
    }
    .sidebar:not(.is-hidden) {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }
    .sidebar.is-hidden {
        width: 260px;
        min-width: 260px;
        padding: 1rem 0;
        overflow: visible;
    }
    .main-wrap {
        min-width: 0;
    }
    .dashboard-topbar {
        padding: 0.75rem 1rem;
    }
    .sidebar-trigger {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }
    .dashboard-main {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    .auth-box {
        padding: 1.75rem;
    }
    .dashboard-main,
    .dashboard-main.plans-page,
    .deposit-page {
        padding: 1rem;
    }
    .dashboard-title {
        font-size: 1.35rem;
    }
    .plans-heading {
        font-size: 1.5rem;
    }
    .attacks-panel-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .attacks-panel-header .attacks-network-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    .attacks-form-row {
        flex-direction: column;
    }
    .attacks-form-group {
        width: 100%;
    }
    .attacks-list-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .attacks-filter-form {
        flex: 1 1 100%;
        min-width: 0;
    }
    .attacks-filter-input {
        min-width: 0;
    }
    .attacks-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    .attacks-table {
        min-width: 560px;
    }
    .attacks-pagination-wrap {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .api-access-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .api-two-columns {
        gap: 1rem;
    }
    .api-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    .api-table {
        min-width: 480px;
    }
    .api-pagination-wrap {
        flex-wrap: wrap;
    }
    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        gap: 0.25rem;
    }
    .profile-tab {
        flex-shrink: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    .profile-details-card {
        padding: 1.25rem;
    }
    .plan-buy-modal {
        max-width: calc(100% - 2rem);
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    .api-usage-modal {
        max-width: calc(100% - 2rem);
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem;
    }
    .auth-title {
        font-size: 1.4rem;
    }
    .dashboard-topbar-title {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .dashboard-cards-grid {
        gap: 1rem;
    }
    .dashboard-card {
        padding: 1rem;
        min-height: 90px;
    }
    .dashboard-card-value {
        font-size: 1.65rem;
    }
    .dashboard-two-cards {
        gap: 1rem;
        margin-top: 1rem;
    }
    .attacks-panel-title,
    .attacks-list-title {
        font-size: 1.15rem;
    }
    .attacks-start-btn {
        width: 100%;
        min-height: 44px;
    }
    .attacks-page-link,
    .api-page-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .api-generate-btn,
    .plan-select-btn {
        min-height: 44px;
    }
    .btn-primary {
        min-height: 44px;
    }
    .sidebar-nav .nav-item {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }
    .sidebar-link {
        min-height: 44px;
        padding: 0.5rem 0;
        align-items: center;
    }
    .btn-dots {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .sidebar-trigger:focus,
    .sidebar-nav .nav-item:focus,
    .btn-dots:focus,
    .attacks-toggle-btn:focus,
    .attacks-filter-btn:focus,
    .attacks-start-btn:focus,
    .api-generate-btn:focus,
    .plan-select-btn:focus,
    .btn-primary:focus {
        outline: 2px solid #6366f1;
        outline-offset: 2px;
    }
    .attacks-select-option:hover,
    .sidebar-nav .nav-item:hover,
    .sidebar-link:hover {
        background: transparent;
    }
    .sidebar-nav .nav-item.active:hover {
        background: #27272a;
    }
}

/* ========== Network Tools ========== */
.tools-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.tools-card {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tools-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.tools-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.3));
    border-radius: 12px;
    color: #38bdf8;
}

.tools-header-icon svg {
    flex-shrink: 0;
}

.tools-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.tools-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: #a1a1aa;
}

.tools-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.tools-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a1a1aa;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tools-tab:hover {
    color: #e4e4e7;
    background: rgba(63, 63, 70, 0.5);
}

.tools-tab.is-active {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    color: #fff;
}

.tools-tab-icon {
    display: inline-flex;
}

.tools-panel {
    display: none;
}

.tools-panel.is-active {
    display: block;
}

.tools-panel-inner {
    padding: 1.5rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.4);
    border-radius: 12px;
}

.tools-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.tools-panel-title-icon {
    display: inline-flex;
    color: #38bdf8;
}

.tools-panel-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.tools-form-group {
    margin-bottom: 1.25rem;
}

.tools-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.tools-form-input {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    color: #e4e4e7;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
}

.tools-form-input::placeholder {
    color: #71717a;
}

.tools-form-input:focus {
    outline: none;
    border-color: #38bdf8;
}

.tools-form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #71717a;
}

.tools-form-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    background: rgba(113, 113, 122, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

.tools-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.tools-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.tools-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tools-result {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.tools-result-loading {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #a1a1aa;
}

.tools-result-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tools-result-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.tools-result-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.tools-result-dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.5rem;
}

.tools-result-dl dt {
    margin: 0;
    color: #a1a1aa;
    font-weight: 500;
}

.tools-result-dl dd {
    margin: 0;
    color: #e4e4e7;
}

.tools-result-dl a {
    color: #38bdf8;
}

.tools-result-dl a:hover {
    text-decoration: underline;
}

/* Site copyright footer */
.site-copyright {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: #71717a;
    border-top: 1px solid #27272a;
    background: rgba(15, 15, 18, 0.8);
}
