@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root, [data-theme="light"] {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #0a0a0a;
    --text-muted: #555555;
    --primary-color: #000000;
    --primary-hover: #222222;
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.85);
    --btn-bg: #000000;
    --btn-text: #ffffff;
    --btn-hover: #222222;
    --badge-bg: #000000;
    --badge-text: #ffffff;
    --icon-circle-bg: #000000;
    --icon-circle-color: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #000000;
    --card-bg: #070707;
    --text-color: #ffffff;
    --text-muted: #888888;
    --primary-color: #ffffff;
    --primary-hover: #e5e5e5;
    --border-color: #1f1f1f;
    --header-bg: rgba(7, 7, 7, 0.85);
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --btn-hover: #e5e5e5;
    --badge-bg: #ffffff;
    --badge-text: #000000;
    --icon-circle-bg: #1a1a1a;
    --icon-circle-color: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, strong, th {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Header */
header {
    padding: 0.65rem 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    header {
        padding: 0.75rem 1.75rem;
    }
}

@media (min-width: 1024px) {
    header {
        padding: 0.75rem 2.5rem;
    }
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: opacity 0.15s ease;
}

@media (min-width: 768px) {
    .logo {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .logo {
        font-size: 1.4rem;
    }
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    height: 26px !important;
    width: 26px !important;
    object-fit: cover;
}

@media (min-width: 768px) {
    .logo img {
        height: 28px !important;
        width: 28px !important;
    }
}

@media (min-width: 1024px) {
    .logo img {
        height: 32px !important;
        width: 32px !important;
    }
}

/* Burger Button */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    padding: 8px 7px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    z-index: 102;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.burger-btn:hover {
    border-color: var(--text-color);
}

.burger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Burger Animation to X */
.burger-btn.is-active .burger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger-btn.is-active .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.is-active .burger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 768px) {
    .burger-btn {
        display: none !important;
    }
}

/* Nav Links & Controls */
.nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-links a, .theme-toggle {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background-color: var(--card-bg);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
}

/* Uniform Icon Control Buttons in Header */
.icon-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.icon-btn.lang-btn {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.icon-btn.logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .icon-btn.logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.icon-btn.login-btn:hover {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

[data-theme="dark"] .icon-btn.login-btn:hover {
    background-color: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Disable all transitions during window resize to prevent breakpoint flash */
.resize-no-transition *,
.resize-no-transition *::before,
.resize-no-transition *::after {
    transition: none !important;
    animation: none !important;
}

@media (max-width: 767px) {
    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0.75rem;
        right: 0.75rem;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 18px;
        padding: 1.25rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        justify-content: flex-start;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
        z-index: 101;
    }

    .nav-links.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .nav-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
}

[data-theme="dark"] .nav-links a:not(.btn):hover,
[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}

[data-theme="light"] .nav-links a:not(.btn):hover,
[data-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #0a0a0a !important;
}

.nav-links a.btn-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text) !important;
    border: 1px solid var(--btn-bg);
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
}

.nav-links a.btn-primary:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    color: var(--btn-text) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Main */
main {
    flex: 1;
    padding: 3rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    main {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem 0.75rem;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem 4rem 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1.2px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.925rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    background-color: var(--bg-color);
    border-color: var(--text-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
}

/* Pricing Grid & Slider Layouts */
.horizontal-slider-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.h-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    scrollbar-width: none;
    margin-top: 1.5rem;
}

.h-slider-container::-webkit-scrollbar {
    display: none;
}

.pricing-card, .contact-card {
    scroll-snap-align: center;
    flex: 0 0 270px;
    width: 270px;
    max-width: 82vw;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .pricing-card, .contact-card {
        flex: 0 0 calc(50% - 1rem);
        width: auto;
        max-width: none;
    }
}

/* Tablet view grid (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .h-slider-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        margin-top: 2rem;
    }
    #devices-slider-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-card, .contact-card {
        flex: none;
        width: 100%;
    }
}

/* Desktop view grid (> 1024px) */
@media (min-width: 1025px) {
    .h-slider-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        margin-top: 2.5rem;
    }
    #devices-slider-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-card, .contact-card {
        flex: none;
        width: 100%;
    }
}

.pricing-card {
    position: relative;
    overflow: visible;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.25rem 1.5rem 1.85rem 1.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    min-height: 440px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 1.5rem 1.25rem;
        min-height: 380px;
        border-radius: 18px;
    }
}

[data-theme="dark"] .pricing-card {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .pricing-card:hover,
[data-theme="dark"] .pricing-card.popular {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.18), 0 10px 35px rgba(0, 0, 0, 0.95);
    background: #000000;
}

[data-theme="light"] .pricing-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .pricing-card.popular {
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

/* Functional Dashboard / Cabinet Pricing Cards */
.pricing-card.cabinet-card {
    padding: 1.85rem 1.25rem 1.5rem 1.25rem;
    min-height: 400px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .pricing-card.cabinet-card {
        padding: 1.5rem 1.15rem;
        min-height: 380px;
        border-radius: 18px;
    }
}

.pricing-card.cabinet-card ul.features {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .pricing-card.cabinet-card ul.features {
        padding: 0.4rem 0.6rem;
        border-radius: 8px;
    }
}

[data-theme="light"] .pricing-card.cabinet-card ul.features {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

/* Monochromatic Popular / Value Badge */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 2;
}

/* Strict Vertical Alignment Blocks */
.card-header-wrapper {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .card-header-wrapper {
        height: 36px;
        margin-bottom: 0.25rem;
    }
}

.pricing-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.3px;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 768px) {
    .pricing-card h3 {
        font-size: 1.15rem;
    }
}

.price-section {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.5rem 0 1.25rem 0;
}

@media (max-width: 768px) {
    .price-section {
        height: 64px;
        margin: 0.35rem 0 0.75rem 0;
    }
}

.price-main {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .price-main {
        font-size: 1.65rem;
    }
}

.price-converted {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

@media (max-width: 768px) {
    .price-converted {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
}

.pricing-card ul.features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .pricing-card ul.features {
        margin: 0.5rem 0 0.85rem 0;
        gap: 0.6rem;
    }
}

.pricing-card ul.features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .pricing-card ul.features li {
        font-size: 0.84rem;
        gap: 0.6rem;
    }
}

.pricing-card ul.features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--icon-circle-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--icon-circle-bg);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pricing-card ul.features li::before {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
    }
}

.card-footer-wrapper {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.discount-info-slot {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .discount-info-slot {
        height: 20px;
        margin-bottom: 0.25rem;
    }
}

.discount-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 768px) {
    .discount-info {
        font-size: 0.75rem;
    }
}

.discount-info s {
    opacity: 0.6;
}

.discount-pct {
    color: var(--text-color);
    font-weight: 700;
}

.pricing-card .btn.buy-btn,
.pricing-card .btn.buy-device-btn {
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    color: var(--btn-text) !important;
    width: 100%;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.pricing-card .btn.buy-btn:hover,
.pricing-card .btn.buy-device-btn:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.discount-info-slot {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.discount-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.discount-info s {
    opacity: 0.6;
}

.discount-pct {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pricing-card .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.88rem;
    }
}

.pricing-card .btn:hover {
    background-color: transparent !important;
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
    box-shadow: none;
}

/* Forms */
.form-container {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    width: 100%;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-color);
    box-shadow: 0 0 0 3px var(--shadow-sm);
    background-color: var(--card-bg);
}

/* Tabs Navigation & Segmented Control Bar */
.tabs-nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tabs-nav.cabinet-segmented-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 5px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 2.5rem auto;
    max-width: 640px;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .tabs-nav.cabinet-segmented-bar {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.75rem 0;
    transition: all 0.15s ease;
    position: relative;
}

.tabs-nav.cabinet-segmented-bar .tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--text-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-color);
}

.tabs-nav.cabinet-segmented-bar .tab-btn.active::after {
    display: none !important;
}

.tabs-nav.cabinet-segmented-bar .tab-btn.active {
    background: var(--text-color) !important;
    color: var(--bg-color) !important;
    border-color: var(--text-color) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

/* Subscriptions Dashboard Cards */
.sub-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease;
}

.sub-card:hover {
    border-color: var(--text-color);
}

.sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.sub-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.sub-card-badge {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.copy-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.copy-input-group input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.85rem;
    font-family: monospace;
}

/* Misc Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }

/* Responsive Center Wrapper */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.action-buttons-group {
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
    /* Horizontal scrolling for tab bars to prevent name wrapping */
@media (max-width: 767px) {
    .tabs-nav, .admin-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        padding-bottom: 0 !important;
        margin-bottom: 1.75rem !important;
        border-bottom: none !important;
    }

    .tabs-nav.cabinet-segmented-bar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        max-width: 100% !important;
        padding: 5px !important;
        margin-bottom: 1.75rem !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    [data-theme="light"] .tabs-nav.cabinet-segmented-bar {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
    }

    .tab-btn, .admin-tab {
        font-size: 0.82rem !important;
        padding: 0.45rem 0.85rem !important;
        border-radius: 9999px !important;
        border: 1px solid var(--border-color) !important;
        background-color: var(--card-bg) !important;
        color: var(--text-muted) !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
    }

    .tabs-nav.cabinet-segmented-bar .tab-btn {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
        border: 1px solid transparent !important;
        background: transparent !important;
        color: var(--text-muted) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tab-btn.active, .admin-tab.active {
        background-color: var(--text-color) !important;
        color: var(--bg-color) !important;
        border-color: var(--text-color) !important;
        font-weight: 700 !important;
    }

    .tab-btn.active::after {
        display: none !important;
    }
}

    /* Reduce tab container padding */
    .tab-content > div {
        padding: 0.75rem 0.5rem !important;
    }

    /* Keep standard tables compact but scrollable horizontally */
    table {
        display: table !important;
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
    }
    
    thead {
        display: table-header-group !important;
    }
    
    tbody {
        display: table-row-group !important;
    }
    
    tr {
        display: table-row !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        background-color: transparent !important;
    }
    
    th, td {
        display: table-cell !important;
        padding: 0.5rem 0.6rem !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        text-align: left !important;
        white-space: nowrap !important; /* Prevent any wrapping of names/headers/IPs */
        word-break: normal !important;  /* Avoid breaking middle of words */
        position: static !important;
        width: auto !important;
    }

    th {
        font-weight: 700 !important;
        background-color: var(--card-bg) !important;
        color: var(--text-color) !important;
    }

    /* Hide traffic breakdown on mobile */
    .traffic-breakdown {
        display: none !important;
    }

    /* Remove column max-widths and truncation to show full names/emails */
    td[data-label="Email"], th[data-label="Email"] {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    td[data-label="Уникальный ID"] {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    td[data-label="Последний IP"] {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    td[data-label="Ссылка"] {
        max-width: 300px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    td[data-label="User Agent"] {
        max-width: 200px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    td[data-label="Действия"] {
        width: auto !important;
        max-width: none !important;
    }

    /* Horizontal action buttons on mobile since table is scrollable */
    .action-buttons-group {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.35rem !important;
        align-items: center !important;
        width: auto !important;
        flex-wrap: nowrap !important;
    }
    
    .action-buttons-group .btn {
        width: auto !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        text-align: center !important;
        display: inline-flex !important;
        white-space: nowrap !important;
    }

    /* Copy input stack group */
    .copy-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copy-input-group button {
        width: 100%;
    }
}

/* Contacts Section Styling - Single Compact Modern Card */
.contacts-wrapper {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-single-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem 1.75rem;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

[data-theme="dark"] .contact-single-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.contact-card-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .contact-card-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.contact-card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.contact-card-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-row {
    --row-brand: var(--text-color);
    --row-brand-bg: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.tg-chat-row {
    --row-brand: #3b82f6;
    --row-brand-bg: rgba(59, 130, 246, 0.04);
}

.tg-channel-row {
    --row-brand: #0088cc;
    --row-brand-bg: rgba(0, 136, 204, 0.04);
}

.email-row {
    --row-brand: #ea4335;
    --row-brand-bg: rgba(234, 67, 53, 0.04);
}

[data-theme="dark"] .tg-chat-row {
    --row-brand: #60a5fa;
    --row-brand-bg: rgba(59, 130, 246, 0.06);
}

[data-theme="dark"] .tg-channel-row {
    --row-brand: #38bdf8;
    --row-brand-bg: rgba(0, 136, 204, 0.06);
}

[data-theme="dark"] .email-row {
    --row-brand: #f87171;
    --row-brand-bg: rgba(234, 67, 53, 0.06);
}

.channel-row:hover {
    border-color: var(--row-brand);
    background: var(--row-brand-bg);
}

.channel-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--row-brand);
    transition: transform 0.2s ease;
}

.channel-icon svg {
    width: 22px;
    height: 22px;
    color: inherit;
}

.channel-row:hover .channel-icon {
    transform: scale(1.1);
}

.channel-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.channel-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.channel-val {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.channel-link-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.channel-row:hover .channel-link-btn {
    color: var(--row-brand);
}

.arrow-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.channel-row:hover .arrow-svg {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .contact-single-card {
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
    }
    .channel-row {
        padding: 0.75rem 0.85rem;
    }
    .channel-name {
        font-size: 0.9rem;
    }
    .channel-val {
        font-size: 0.75rem;
    }
    .channel-link-btn span {
        display: none;
    }
}


/* Proxy Cards Grid Layout */
.proxy-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 600px) {
    .proxy-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.proxy-card {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.proxy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-color);
}

.proxy-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.proxy-protocol-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.proxy-protocol-badge.vless {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.proxy-protocol-badge.hysteria {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.proxy-protocol-badge.other {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.proxy-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.proxy-card-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proxy-card-detail-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 2px;
}

.proxy-card-detail-item span:last-child {
    font-family: monospace;
    color: var(--text-color);
    word-break: break-all;
}

.proxy-card-actions {
    display: flex;
    gap: 0.5rem;
}

.proxy-card-actions button {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-copy-config {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
}

.btn-copy-config:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-qr-config {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-qr-config:hover {
    background-color: var(--bg-color);
    border-color: var(--text-color);
}

body.modal-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Modal styling for QR Code & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(6px);
    overscroll-behavior: contain;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-lg, 0 20px 25px -5px rgba(0, 0, 0, 0.5));
    text-align: left;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    z-index: 100000;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

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

.qr-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.qr-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.qr-code-img {
    border: 10px solid #ffffff;
    border-radius: 12px;
    background-color: #ffffff;
    width: 220px;
    height: 220px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Spinner and keyframes */
.spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

/* Modern Dots Pagination Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--text-color);
}

@media (min-width: 769px) {
    .slider-dots {
        display: none !important;
    }
}

/* Divider Section Spacing */
.divider-section {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

@media (max-width: 1024px) {
    .divider-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .divider-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

.section-title, .text-center h2 {
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-title, .text-center h2 {
        margin-bottom: 1.25rem;
    }
}

/* Styling for lists in privacy/terms/about pages and tabs to add proper tabulation */
[data-i18n="privacyBody"] ul,
[data-i18n="termsBody"] ul,
.about-tab-pane ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin: 1.2rem 0 !important;
}

[data-i18n="privacyBody"] li,
[data-i18n="termsBody"] li,
.about-tab-pane li {
    margin-bottom: 0.8rem !important;
    padding-left: 0.25rem !important;
}

[data-i18n="privacyBody"] p,
[data-i18n="termsBody"] p,
.about-tab-pane p {
    margin-bottom: 1.1rem !important;
}

[data-i18n="privacyBody"] h3,
[data-i18n="termsBody"] h3,
.about-tab-pane h3 {
    margin-top: 1.8rem !important;
    margin-bottom: 0.9rem !important;
    font-weight: 700 !important;
}

/* ===================================================
   COMPREHENSIVE ANIMATION SYSTEM
   =================================================== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        transform: translateX(-50%) translateZ(0);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
        transform: translateX(-50%) translateZ(0);
    }
}

/* Page Entrance Animations */
/* Page Entrance Animations (Desktop Only) */
@media (min-width: 769px) {
    .hero, .text-center h1, main > section, .tabs-nav {
        animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .pricing-card {
        animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease !important;
    }

    .pricing-card:nth-child(1) { animation-delay: 0.05s; }
    .pricing-card:nth-child(2) { animation-delay: 0.12s; }
    .pricing-card:nth-child(3) { animation-delay: 0.19s; }
    .pricing-card:nth-child(4) { animation-delay: 0.26s; }

    .pricing-card:hover {
        transform: translateY(-6px) scale(1.01) !important;
    }
}

/* Mobile GPU Render Stability Override (Prevents Card Flickering/Blinking on Mobile Scroll) */
@media (max-width: 768px) {
    .pricing-card, .sub-card, .popular-badge, .h-slider-container, main > section {
        animation: none !important;
        will-change: auto !important;
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
        -webkit-transform-style: flat !important;
        transform-style: flat !important;
        transform: none !important;
    }

    .popular-badge {
        transform: translateX(-50%) !important;
    }
}

/* Interactive Micro-Animations */
.btn, .buy-btn, .buy-device-btn, .nav-links a, .theme-toggle, .tab-btn, .modal-close {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:active, .buy-btn:active, .buy-device-btn:active, .nav-links a:active, .theme-toggle:active, .tab-btn:active, .modal-close:active {
    transform: scale(0.95) !important;
}

/* Tab Panes Transition */
.about-tab-pane, .tab-content {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
        text-align: center;
        justify-content: center;
    }
}

/* Custom Modern Checkbox Component */
.custom-checkbox-container {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-checkbox-label:hover:not(.disabled) {
    border-color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-checkbox-label.disabled {
    cursor: not-allowed;
    opacity: 0.55;
    background: var(--bg-color);
    border-color: var(--border-color);
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.custom-checkbox-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-checkbox-input:checked + .custom-checkbox-box {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    transform: scale(1.05);
}

.custom-checkbox-box svg {
    width: 14px;
    height: 14px;
    stroke: var(--btn-text);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-checkbox-input:checked + .custom-checkbox-box svg {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.custom-checkbox-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

.terms-status-hint {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.4;
}

.terms-status-hint.locked {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.terms-status-hint.unlocked {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.terms-status-hint.accepted {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
}

/* AMOLED Premium Subscriptions Cards System */
.subs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.sub-card-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

[data-theme="dark"] .sub-card-container {
    background-color: #050505;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.sub-card-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.22);
}

.sub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.sub-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sub-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sub-icon-badge svg {
    width: 20px;
    height: 20px;
}

.sub-icon-badge.badge-trial {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.sub-icon-badge.badge-premium {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.sub-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.sub-id-label {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-family: monospace;
    display: block;
    margin-top: 0.15rem;
}

.sub-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.sub-status-pill.status-active {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.sub-status-pill.status-disabled {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.sub-status-pill.status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* Traffic Box */
.sub-traffic-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
}

[data-theme="light"] .sub-traffic-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border-color);
}

.sub-traffic-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
}

.traffic-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.traffic-value {
    font-weight: 700;
    font-size: 0.82rem;
}

.sub-traffic-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

[data-theme="light"] .sub-traffic-bar-bg {
    background: rgba(0, 0, 0, 0.08);
}

.sub-traffic-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.sub-traffic-bar-fill.fill-warning {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.sub-traffic-bar-fill.fill-expired {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Details Grid */
.sub-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.sub-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

[data-theme="light"] .sub-detail-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border-color);
}

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

.detail-value {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input Field with B&W Action Icons */
.sub-link-section {
    margin-top: 0.1rem;
}

.sub-link-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.35rem;
}

.sub-link-input {
    width: 100%;
    padding: 0.65rem 4.6rem 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.82rem;
    min-width: 0;
    border-radius: 11px;
    font-family: monospace;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

[data-theme="dark"] .sub-link-input {
    background-color: #000000;
    border-color: rgba(255, 255, 255, 0.12);
}

.sub-link-input:focus {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.sub-link-actions {
    position: absolute;
    right: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-icon-link {
    background: transparent;
    border: none;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
    color: var(--text-color);
    opacity: 0.85;
}

.btn-icon-link:hover {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
    transform: scale(1.08);
}

.btn-icon-link.copy-success {
    color: #10b981 !important;
    transform: scale(1.18);
    opacity: 1 !important;
}

[data-theme="light"] .btn-icon-link:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Toolbar Buttons */
.sub-actions-toolbar {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.sub-actions-toolbar .btn {
    flex: 1;
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.sub-actions-toolbar .add-devices-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .sub-actions-toolbar .add-devices-btn {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.sub-actions-toolbar .add-devices-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.sub-actions-toolbar .btn * {
    pointer-events: none;
}

@media (max-width: 640px) {
    .subs-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .sub-card-container {
        padding: 0.85rem;
        gap: 0.65rem;
    }
    .sub-details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }
    .sub-detail-item {
        padding: 0.35rem 0.45rem;
    }
    .detail-label {
        font-size: 0.64rem;
    }
    .detail-value {
        font-size: 0.78rem;
    }
    .sub-actions-toolbar .btn {
        flex: 1 1 calc(50% - 0.45rem);
    }
    .sub-actions-toolbar .view-nodes-btn {
        flex: 1 1 100%;
    }
}

/* Nodes Modal Cards */
.node-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.node-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.node-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.node-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    word-break: break-word;
    overflow-wrap: anywhere;
    flex: 1;
    min-width: 0;
}

/* Modern AMOLED Site Footer */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0 2rem 0;
    margin-top: 5rem;
    position: relative;
    z-index: 10;
}

[data-theme="dark"] .site-footer {
    background: #000000;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col.brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.footer-brand img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
}

.footer-col h4 {
    margin: 0 0 1.1rem 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-color);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-menu li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-menu li a:hover {
    color: var(--text-color);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 2.25rem 0 1.5rem 0;
        margin-top: 3.5rem;
    }

    .footer-inner {
        padding: 0 1.25rem;
        box-sizing: border-box;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }

    .footer-col.brand-col {
        margin-bottom: 0.25rem;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }

    [data-theme="dark"] .footer-col.brand-col {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .footer-brand {
        justify-content: flex-start;
    }

    .footer-desc {
        max-width: 100%;
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .footer-col h4 {
        margin-bottom: 0.65rem;
        font-size: 0.8rem;
    }

    .footer-menu {
        gap: 0.5rem;
    }

    .footer-menu li a {
        font-size: 0.86rem;
    }

    .footer-menu li a:hover {
        transform: none;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.8rem;
    }
}

/* AMOLED Server Status Card & Glass Banner System */
.status-glass-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

[data-theme="dark"] .status-glass-banner {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
}

.status-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .status-card {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.status-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), 0 10px 35px rgba(0, 0, 0, 0.95);
    transform: translateY(-2px);
}

/* Circular Country Flag Icon Container */
.country-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .country-flag-icon {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Candlestick Uptime History Bar System */
.uptime-history-wrapper {
    margin-top: 1.35rem;
    position: relative;
    width: 100%;
}

.uptime-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.45rem;
    letter-spacing: 0.2px;
}

.uptime-history-header span {
    white-space: nowrap;
}

.candlestick-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 26px;
    width: 100%;
    box-sizing: border-box;
}

.candlestick-tick {
    flex: 1;
    height: 100%;
    border-radius: 4px;
    background-color: var(--border-color);
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.candlestick-tick:hover {
    transform: scaleY(1.2);
    z-index: 5;
}

.candlestick-tick.tick-online {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.35);
}

.candlestick-tick.tick-degraded {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.35);
}

.candlestick-tick.tick-offline {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);
}

.candlestick-tick.tick-nodata {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tooltip on Hover */
.candlestick-tick .tick-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
}

.candlestick-tick:hover .tick-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ===================================================
   DYNAMIC PULSING STATUS INDICATOR
   =================================================== */
@keyframes statusPulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7), 0 0 12px #10b981;
    }
    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), 0 0 18px #10b981;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 12px #10b981;
    }
}

@keyframes statusPulseYellow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7), 0 0 12px #f59e0b;
    }
    70% {
        box-shadow: 0 0 0 14px rgba(245, 158, 11, 0), 0 0 18px #f59e0b;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 0 12px #f59e0b;
    }
}

@keyframes statusPulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 0 12px #ef4444;
    }
    70% {
        box-shadow: 0 0 0 14px rgba(239, 68, 68, 0), 0 0 18px #ef4444;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 0 12px #ef4444;
    }
}

#status-indicator-dot {
    animation: statusPulseGreen 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    transition: background-color 0.4s ease, animation 0.4s ease;
}

/* ===================================================
   STATUS GLASS BANNER & CARD HOVER ANIMATIONS
   =================================================== */
.status-glass-banner {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.status-glass-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.25);
}

.status-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(59, 130, 246, 0.15);
    border-color: rgba(255, 255, 255, 0.22);
}

.country-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-card:hover .country-flag-icon {
    transform: scale(1.18) rotate(4deg);
}

/* ===================================================
   FOOTER ANIMATIONS & INTERACTION SYSTEM
   =================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.footer-brand:hover img {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 0 18px var(--accent-glow);
}

.footer-menu li {
    margin-bottom: 0.55rem;
}

.footer-menu a {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    text-decoration: none;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color, #3b82f6);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.footer-menu a:hover {
    color: var(--text-color);
    transform: translateX(5px);
}

.footer-menu a:hover::after {
    width: 100%;
}

.footer-col h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent-color, #3b82f6);
    border-radius: 2px;
    transition: width 0.35s ease;
}

.footer-col:hover h4::after {
    width: 42px;
}

/* ===================================================
   HEADER NAV LINKS & CONTROL BUTTONS
   =================================================== */
.nav-links a {
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .nav-links a:not(.btn):hover,
[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}

[data-theme="light"] .nav-links a:not(.btn):hover,
[data-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #0a0a0a !important;
}

/* Toggle Buttons Rotation */
#theme-toggle, #lang-toggle {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

#theme-toggle:hover, #lang-toggle:hover {
    transform: scale(1.08) rotate(12deg);
}

#theme-toggle:active, #lang-toggle:active {
    transform: scale(0.94) rotate(-10deg);
}

/* ===================================================
   USER BALANCE SYSTEM & MODAL STYLES
   =================================================== */

/* Header Balance Pill - Monochrome Premium Brand Style */
.header-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-color, #0a0a0a);
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header-balance-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.header-balance-pill:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header-balance-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}

.header-balance-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    margin-left: 0.2rem;
    transition: transform 0.25s ease, background-color 0.2s ease;
}

[data-theme="dark"] .header-balance-add-icon {
    background: #ffffff;
    color: #000000;
}

.header-balance-pill:hover .header-balance-add-icon {
    transform: scale(1.18) rotate(90deg);
}

/* Preset Amount Grid & Buttons */
.topup-presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.preset-btn {
    white-space: nowrap !important;
    padding: 0.6rem 0.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn.active {
    border-color: var(--primary-color, #3b82f6) !important;
    background: rgba(59, 130, 246, 0.12) !important;
    color: var(--primary-color, #3b82f6) !important;
}

/* Topup Amount Custom Input */
.topup-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.topup-amount-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-color);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;

    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.topup-amount-input::-webkit-outer-spin-button,
.topup-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.topup-amount-input:focus {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.topup-currency-badge {
    position: absolute;
    right: 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.6;
    pointer-events: none;
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.65rem;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    transform: translateX(120%);
    opacity: 0;
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast.toast-exit {
    animation: toast-slide-out 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.toast.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.toast.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.toast.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.toast-message {
    opacity: 0.85;
    font-size: 0.84rem;
    word-break: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    margin-top: 2px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 14px 14px;
    animation: toast-progress-shrink linear forwards;
}

.toast.toast-success .toast-progress { background: #22c55e; }
.toast.toast-error .toast-progress { background: #ef4444; }
.toast.toast-info .toast-progress { background: #3b82f6; }
.toast.toast-warning .toast-progress { background: #f59e0b; }

@keyframes toast-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes toast-slide-out {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

@keyframes toast-progress-shrink {
    from { width: 100%; }
    to   { width: 0%; }
}

@media (max-width: 480px) {
    .toast-container {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 1rem;
        max-width: unset;
    }
}

/* Stage 2 CSP migration: generated replacements for legacy inline styles. */
.u-inline-002dc26c478b { margin-bottom: 1.5rem; }
.u-inline-014b93e7f3a8 { margin-bottom: 1.25rem; }
.u-inline-03bd3cf1adca { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.u-inline-084c25c350a1 { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.u-inline-0cb81aad89cd { margin: 0.25rem 0 0 0; font-size: 0.82rem; color: var(--text-muted); }
.u-inline-0f6295101cf3 { color: #ef4444; font-size: 0.85rem; margin-bottom: 1rem; text-align: center; }
.u-inline-0fc95a2ea5fb { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 220px; height: 220px; background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(0, 0, 0, 0) 70%); pointer-events: none; border-radius: 50%; }
.u-inline-1062d9ea1cf5 { display: flex; gap: 1rem; margin-top: 1rem; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.u-inline-11afc62bdb85 { padding: 0.85rem; white-space: nowrap; }
.u-inline-12978dde5a2e { color: #22c55e; }
.u-inline-1587674480c0 { font-size:0.88rem; opacity:0.75; }
.u-inline-1908a22d1432 { padding: 0.5rem 1rem; white-space: nowrap; }
.u-inline-196685694ba8 { border-bottom: 1px solid var(--border-color); }
.u-inline-1cd896a57696 { margin-bottom: 2rem; }
.u-inline-1f2aaed7ec4a { max-width: 500px; margin: 0 auto; }
.u-inline-1f73c2556c41 { text-align: center; margin-bottom: 2rem; }
.u-inline-1fca3931c057 { margin-bottom: 0.25rem; }
.u-inline-213177bf9842 { opacity: 0.8; max-width: 600px; margin: 0 auto; font-size: 0.95rem; margin-top: 0.5rem; }
.u-inline-2278c2b68df7 { max-width: 680px; }
.u-inline-23222858ee35 { font-size: 0.8rem; opacity: 0.7; }
.u-inline-2462cb4d17f8 { display: block; font-size: 0.9rem; }
.u-inline-2599e3f7c7fd { max-width: 500px; margin: 0 auto; padding: 2rem 1rem; }
.u-inline-25a573e294e7 { flex: 1; padding: 0.5rem; border: 1px solid var(--border-color); background-color: var(--bg-color); color: var(--text-color); font-size: 0.85rem; border-radius: 6px; }
.u-inline-276576a40b1c { flex:1; min-width:240px; }
.u-inline-2a6a696ccfd2 { font-size: 0.88rem; opacity: 0.75; }
.u-inline-2b08d6f98c1f { max-width: 1200px; margin: 2rem auto; width: 95%; }
.u-inline-2b4660b1575d { text-align: center; margin-top: 1.5rem; }
.u-inline-2ba983329d1b { font-size: 1.75rem; font-weight: 800; color: var(--text-color); }
.u-inline-2c41b3c3afbf { padding: 0.85rem 1rem; white-space: nowrap; width: 140px; }
.u-inline-3038db9b61ab { overflow-x:auto; margin-bottom:1.5rem; }
.u-inline-3081fb8c83a6 { max-width: 580px; width: 100%; text-align: center; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 3.5rem 2rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); position: relative; overflow: hidden; }
.u-inline-33f5fc5dd584 { border-bottom: 2px solid var(--border-color); text-align: left; }
.u-inline-34dad060e232 { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 180px); padding: 2rem 1rem; }
.u-inline-35e683a52fa0 { overflow-x:auto; max-height:200px; }
.u-inline-35f3c03d98c8 { margin-bottom:0.6rem; }
.u-inline-3681bbd4a2e9 { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.u-inline-36959b117996 { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; }
.u-inline-37ab52c9d67a { width: 100%; }
.u-inline-38965f9b18ca { margin:0; }
.u-inline-3c4441181d2c { padding: 0.85rem 1rem; white-space: nowrap; opacity: 0.8; font-size: 0.88rem; }
.u-inline-3cf4519814d3 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--text-color); letter-spacing: -0.2px; }
.u-inline-3e20e48afe3c { height: 42px; }
.u-inline-3e502cfb4363 { flex:1; min-width: 220px; }
.u-inline-3eb702d32a9b { color: #f59e0b; }
.u-inline-3fc9f2b58788 { padding: 2.5rem; text-align: left; }
.u-inline-40572ee44556 { font-size: 0.85rem; margin-top: 0.5rem; color: green; }
.u-inline-419f1ef14cbf { width: 100%; margin-top: 0.5rem; }
.u-inline-4269874347f8 { color: #ef4444; font-size: 0.85rem; text-align: center; margin-bottom: 0.75rem; padding: 0.5rem; background: rgba(239,68,68,0.1); border-radius: 8px; }
.u-inline-42a23dc33f9d { display: flex; flex-direction: column; gap: 2rem; max-width: 600px; margin: 0 auto; }
.u-inline-449e23ad56c9 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.75rem; }
.u-inline-49a8f1bef3cb { width: 12px; height: 12px; border-radius: 50%; background-color: #10b981; box-shadow: 0 0 14px #10b981; flex-shrink: 0; }
.u-inline-4b81e2caa839 { width: 100%; border: 1px solid var(--border-color); background: transparent; font-size: 0.9rem; }
.u-inline-4e3a60161a27 { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.u-inline-4eb7ac735316 { accent-color: var(--primary-color); }
.u-inline-4ed83a5fd74f { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); }
.u-inline-50cbb41a458b { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.25rem; font-weight: 700; border-radius: 10px; }
.u-inline-52b56f17a450 { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; font-weight: 600; }
.u-inline-53272750d069 { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--border-color, #333); border-radius: 8px; cursor: pointer; background: var(--bg-color, #111); }
.u-inline-54de87bbade7 { text-align: center; margin-bottom: 1.25rem; }
.u-inline-56487c812e98 { padding: 0.85rem 1rem; white-space: nowrap; width: 120px; }
.u-inline-5726e7d108e2 { border-color: var(--primary-color); }
.u-inline-58599cbf5030 { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem 5rem 1.5rem; }
.u-inline-58fcaa8c23e5 { text-align: center; border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.u-inline-5a2dfef236e7 { text-align:center; }
.u-inline-5bd71d6712ab { display: flex; flex-direction: column; gap: 0.5rem; }
.u-inline-5bdf59c07032 { font-size: 1.1rem; color: var(--primary-color); }
.u-inline-5c610a998ab1 { padding: 0.45rem 0.9rem; font-size: 0.85rem; font-weight: 600; }
.u-inline-5db60766f15a { display: block; font-size: 0.78rem; opacity: 0.65; margin-top: 0.35rem; }
.u-inline-5f30813f67d2 { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 220px; height: 220px; background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(0, 0, 0, 0) 70%); pointer-events: none; border-radius: 50%; }
.u-inline-60786770face { padding: 0.85rem 1rem; white-space: nowrap; }
.u-inline-624c45755cb9 { text-align: center; margin-bottom: 2.5rem; }
.u-inline-6457e98dcecb { margin-bottom: 1.5rem; text-align: center; }
.u-inline-64c5489fe2af { width: 50px; height: 50px; border-radius: 50%; background: rgba(59, 130, 246, 0.1); color: #3b82f6; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem auto; }
.u-inline-65dc8eae782e { margin-top: 0.5rem; font-size: 0.9rem; opacity: 0.8; }
.u-inline-661d8f354277 { font-weight: 600; font-size: 0.95rem; }
.u-inline-663ad2f11f96 { font-size: 0.85rem; opacity: 0.75; display: block; margin-bottom: 0.25rem; }
.u-inline-66e1377101f3 { height: 120px; overflow-y: scroll; border: 1px solid var(--border-color); padding: 0.8rem; font-size: 0.8rem; margin-bottom: 1rem; border-radius: 6px; background-color: var(--card-bg); color: var(--text-color); line-height: 1.5; opacity: 0.85; }
.u-inline-66edcd2a2f2f { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 600; border-radius: 12px; font-size: 0.95rem; border: 1px solid var(--border-color); background: transparent; }
.u-inline-6728468a8b38 { min-height: auto; padding: 1.4rem; align-items: flex-start; text-align: left; border-radius: 18px; }
.u-inline-67ef3d121f39 { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-color); }
.u-inline-69f1ff4b8344 { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.u-inline-6a1ece2afdfa { margin-top: 0; margin-bottom: 1rem; }
.u-inline-6a355dd453f3 { max-width: 480px; max-height: 85vh; overflow-y: auto; }
.u-inline-6a4e8fb9c74a { animation: pulse 2s infinite ease-in-out; }
.u-inline-6bd073e77184 { font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -2px; margin-bottom: 0.5rem; background: linear-gradient(135deg, var(--text-color) 30%, #3b82f6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.u-inline-6c683af4aa98 { text-decoration:none; text-align:center; }
.u-inline-6cf4d866e5ba { margin-bottom: 0; flex: 2; min-width: 240px; }
.u-inline-6e5ad5b00c55 { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer; }
.u-inline-6f634c6ee050 { max-width: 520px; text-align: left; padding: 2rem; }
.u-inline-70d469700ead { font-size: 0.75rem; background: rgba(34, 197, 94, 0.15); color: #22c55e; padding: 0.15rem 0.4rem; border-radius: 4px; font-weight: 700; }
.u-inline-726cf47beb6f { margin-bottom: 1rem; }
.u-inline-72e207942269 { color: #ef4444; font-size: 0.8rem; text-align: center; margin-bottom: 0.3rem; }
.u-inline-74bdeb594519 { text-align: center; font-size: 0.9rem; opacity: 0.8; margin-bottom: 1.5rem; }
.u-inline-750bd062e714 { opacity: 0.8; max-width: 600px; margin: 0 auto; }
.u-inline-75f7e7417ed6 { font-size: 0.75rem; background: rgba(59, 130, 246, 0.15); color: #3b82f6; padding: 0.15rem 0.4rem; border-radius: 4px; font-weight: 700; }
.u-inline-767f23ac3f92 { max-width: 1000px; margin: 0 auto; padding: 1.5rem; border: 1px solid var(--border-color); background-color: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow-sm); }
.u-inline-768bda7dd991 { margin-bottom:0; }
.u-inline-7a115c5e3225 { font-size: 0.9rem; opacity: 0.7; max-width: 500px; margin: 0 auto; margin-bottom: 1.5rem; }
.u-inline-7b1362f5f5da { max-width: 440px; }
.u-inline-7b225627a01e { padding: 0.35rem 0.75rem; font-size: 0.8rem; background: #f59e0b; color: #000; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.u-inline-7ba9bad628ec { font-weight: 500; }
.u-inline-7c0f86ab5456 { cursor: pointer; }
.u-inline-7caeec8db518 { border: 1px solid var(--border-color); padding: 1.5rem; background-color: var(--card-bg); border-radius: 12px; }
.u-inline-811d9ca81156 { max-width: 600px; margin-left: auto; margin-right: auto; }
.u-inline-829020e8fd29 { width: 90px; height: 90px; margin: 0 auto 1.5rem auto; border-radius: 24px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25); display: flex; align-items: center; justify-content: center; color: #3b82f6; box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); }
.u-inline-8373b6e2553f { width: 100%; border: 1px solid var(--border-color); background: transparent; }
.u-inline-83e69af49d77 { margin-bottom: 0; flex: 1; min-width: 240px; }
.u-inline-85290cde9221 { accent-color: var(--primary-color, #3b82f6); }
.u-inline-862708754ea9 { padding: 0.35rem 0.75rem; font-size: 0.8rem; background: #ef4444; color: #fff; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.u-inline-86de5c90fd22 { font-size: 0.8rem; opacity: 0.8; color: #22c55e; }
.u-inline-86ee585c5c03 { width: 100%; margin-bottom: 1rem; }
.u-inline-86f8205ac015 { text-align: center; margin-bottom: 1rem; }
.u-inline-87abd5415571 { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.u-inline-8addefb47c6b { white-space: nowrap; display: inline-block; }
.u-inline-8baecca2c740 { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.u-inline-8bf8650d7c09 { color: #22c55e; font-weight: 600; margin-bottom: 0.75rem; font-size: 1.05rem; }
.u-inline-8c391e5a7c46 { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.u-inline-8ca7cfeec260 { display: flex; align-items: baseline; gap: 0.5rem; }
.u-inline-8f5182e8b91f { width: 48px; height: 48px; border-radius: 50%; background: var(--icon-circle-bg, #1a1a1a); color: var(--icon-circle-color, #ffffff); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; border: 1px solid var(--border-color); }
.u-inline-905f7aa1a899 { font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -2px; margin-bottom: 0.5rem; background: linear-gradient(135deg, var(--text-color) 30%, #ef4444 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.u-inline-91c5755ed739 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.u-inline-9211d624d3cc { color:#10b981; font-weight:700; }
.u-inline-92cac3679c83 { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 700; border-radius: 12px; font-size: 0.95rem; cursor: pointer; }
.u-inline-9320119ba859 { text-align: center; font-size: 1.5rem; letter-spacing: 5px; }
.u-inline-93620f627369 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.25rem; }
.u-inline-93a3f2dc6f1a { margin-bottom: 0; font-size: 0.95rem; }
.u-inline-942eb0ec3aae { width: 100%; margin-top: 1rem; }
.u-inline-956ce9374368 { margin-top: 0; margin-bottom: 2rem; font-size: 2rem; font-weight: 700; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.u-inline-96b4f2d054a0 { background-color: rgba(255, 0, 0, 0.1); border: 1px solid red; color: red; padding: 0.8rem; margin-bottom: 1rem; font-size: 0.9rem; text-align: center; border-radius: 8px; }
.u-inline-972b423491c2 { width: 100%; padding: 0.85rem; font-size: 1rem; font-weight: 700; border-radius: 10px; }
.u-inline-9a9350d5e552 { font-size:0.9rem; margin-bottom:1.2rem; background:var(--bg-color); padding:0.8rem; border-radius:8px; border:1px solid var(--border-color); }
.u-inline-a13a42971c2d { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.u-inline-a4c124ccff41 { height: 32px; width: 32px; border-radius: 4px; object-fit: cover; }
.u-inline-a60992811119 { display: flex; align-items: center; gap: 0.5rem; }
.u-inline-a82bccb70cd8 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -0.3px; }
.u-inline-a85c61577336 { text-decoration:none; }
.u-inline-a8b8e1f81d43 { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.u-inline-a8fbd09a1f12 { width: 100%; padding: 0.75rem; font-size: 1rem; }
.u-inline-ab12c422885b { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.6rem; }
.u-inline-ab7de98c0486 { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.2rem; }
.u-inline-ac0d2c177907 { padding: 0.4rem 0.8rem; }
.u-inline-ac6b283c09a0 { height: 34px; width: 34px; border-radius: 6px; object-fit: cover; }
.u-inline-ad50f23752c5 { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.88rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.u-inline-adf62a8afc75 { display:flex; gap:0.5rem; }
.u-inline-aeadbd09239c { overflow-x: auto; }
.u-inline-aed174398f30 { max-width: 440px; text-align: left; padding: 2rem; }
.u-inline-b23b02ff6055 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.u-inline-b27f3992dbba { font-size: 0.85rem; opacity: 0.8; margin-bottom: 1rem; }
.u-inline-b28461d847bb { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.u-inline-b503bae13955 { text-align: center; padding: 2rem; opacity: 0.8; }
.u-inline-b82211573bf8 { display:flex; gap:1.5rem; }
.u-inline-b9300a71663b { font-size: 1.85rem; font-weight: 800; color: var(--text-color); margin-top: 0.35rem; letter-spacing: -0.5px; }
.u-inline-babf0f2f2de1 { border-bottom: 2px solid var(--border-color); }
.u-inline-bb999cd94c43 { text-align: center; border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 1rem; }
.u-inline-bcfcafe53cdd { padding: 0.85rem 1rem; white-space: nowrap; width: 130px; }
.u-inline-bd7875715c9e { padding: 1.5rem; text-align: center; }
.u-inline-be74ed564197 { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.u-inline-bf63e9ba7414 { font-size: 0.9rem; opacity: 0.8; margin-bottom: 1.5rem; }
.u-inline-c07fcd974afb { width: 100%; opacity: 0.6; cursor: not-allowed; }
.u-inline-c24d717d454b { font-size: 0.82rem; opacity: 0.7; }
.u-inline-c2aae1f5a4fe { display: flex; align-items: center; gap: 1rem; }
.u-inline-c471b04a613a { max-width: 450px; margin: 0 auto; padding: 2rem 1rem; }
.u-inline-c66e0a4d19d9 { display:flex; flex-direction:column; gap:0.75rem; margin-top:1.25rem; }
.u-inline-c68a6801f765 { margin-bottom: 0; flex: 1; min-width: 140px; }
.u-inline-c87bb1753ef7 { border: 1px solid var(--border-color); padding: 2.5rem 2rem; text-align: center; background-color: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow-sm); }
.u-inline-c8cee58622e3 { display: flex; align-items: center; gap: 0.75rem; }
.u-inline-cad8564484f5 { word-break: break-all; font-family: monospace; font-size: 0.82rem; background: var(--bg-color); padding: 1rem; border-radius: 8px; border: 1px solid var(--border-color); max-height: 300px; overflow-y: auto; }
.u-inline-cb08137f9f83 { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.u-inline-cbf22912d3e2 { position: relative; display: flex; align-items: center; justify-content: center; }
.u-inline-cc002f777e69 { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.88rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.u-inline-cd7d08200c6e { white-space: pre-wrap; word-break: break-all; background: var(--bg-color); padding: 1rem; border-radius: 8px; font-size: 0.8rem; border: 1px solid var(--border-color); max-height: 350px; overflow-y: auto; }
.u-inline-cdb5d67248c7 { font-weight: 700; font-size: 1rem; }
.u-inline-cdd1b94371e6 { color: #ef4444; }
.u-inline-ce765ca5ba40 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.u-inline-d44f92bb9e35 { font-size: 0.95rem; color: var(--text-muted); max-width: 440px; margin: 0 auto 2rem auto; line-height: 1.5; }
.u-inline-d6f6c74cc0e6 { background-color: rgba(0, 128, 0, 0.1); border: 1px solid green; color: green; padding: 0.8rem; margin-bottom: 1rem; font-size: 0.9rem; text-align: center; }
.u-inline-d75376712b35 { opacity: 0.8; max-width: 600px; margin: 0 auto; margin-bottom: 2rem; }
.u-inline-d7beffc9a323 { display: block; margin-bottom: 0.5rem; }
.u-inline-d8584543b90b { display: flex; justify-content: center; align-items: center; min-height: 60vh; }
.u-inline-d9353cdee0ba { margin: 1rem 0; font-weight:600; }
.u-inline-d9bd0cc04149 { background-color: rgba(255, 0, 0, 0.1); border: 1px solid red; color: red; padding: 0.8rem; margin-bottom: 1rem; font-size: 0.9rem; text-align: center; }
.u-inline-da993ad8c9cb { margin-bottom: 0.5rem; font-size: 0.95rem; }
.u-inline-db2a968a2d40 { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.u-inline-db817b8bfc72 { font-size: 1.1rem; font-weight: 700; }
.u-inline-dc2eaaa977fe { accent-color: #22c55e; }
.u-inline-dcc92d9d3a46 { width: 90px; height: 90px; margin: 0 auto 1.5rem auto; border-radius: 24px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); display: flex; align-items: center; justify-content: center; color: #ef4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.15); }
.u-inline-df8682059844 { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.u-inline-dfc5c110a82b { text-align: center; margin-bottom: 1.5rem; }
.u-inline-e03609198ae3 { max-width: 400px; width: 100%; }
.u-inline-e2db4690396c { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 700; border-radius: 12px; font-size: 0.95rem; }
.u-inline-e4e973aca42a { padding: 0.85rem 1rem; }
.u-inline-e5bebe0cb6ec { color: #ef4444; padding: 1rem; text-align: center; font-size: 0.9rem; }
.u-inline-e69bb462aba7 { padding: 0.85rem 1rem; white-space: nowrap; width: 160px; }
.u-inline-ebe69a8dd15c { font-size: 0.85rem; opacity: 0.7; }
.u-inline-ec785d1a1671 { font-size: 1rem; line-height: 1.7; }
.u-inline-ed20802c1d0c { padding: 0.85rem 1rem; white-space: nowrap; font-weight: 600; }
.u-inline-f39b0c0ab2f9 { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--bg-color); color: var(--text-color); box-sizing: border-box; }
.u-inline-f4aaed6e8dbc { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-color); }
.u-inline-f5fdf1f7683d { font-size: 2.3rem; font-weight: 800; margin-bottom: 0.6rem; letter-spacing: -0.5px; }
.u-inline-f67e3c3e512b { margin-top: 0.5rem; opacity: 0.8; }
.u-inline-f7559bfafa0e { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.u-inline-f90566ea2233 { grid-column: 1 / -1; text-align: center; padding: 3.5rem; color: var(--text-muted); }
.u-inline-f95b2431a9dd { background: rgba(59, 130, 246, 0.15); color: #3b82f6; white-space: nowrap; display: inline-block; }
.u-inline-fb5ec070f2bf { text-align: center; }
.u-inline-fdd322ba5944 { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid #22c55e; border-radius: 8px; cursor: pointer; background: rgba(34, 197, 94, 0.08); }
.u-inline-fe17d107b0ee { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.5px; }
.u-inline-fee5aea3bcc8 { text-align: center; padding: 2rem; }
.sub-traffic-width-0 { width: 0%; }
.sub-traffic-width-1 { width: 1%; }
.sub-traffic-width-2 { width: 2%; }
.sub-traffic-width-3 { width: 3%; }
.sub-traffic-width-4 { width: 4%; }
.sub-traffic-width-5 { width: 5%; }
.sub-traffic-width-6 { width: 6%; }
.sub-traffic-width-7 { width: 7%; }
.sub-traffic-width-8 { width: 8%; }
.sub-traffic-width-9 { width: 9%; }
.sub-traffic-width-10 { width: 10%; }
.sub-traffic-width-11 { width: 11%; }
.sub-traffic-width-12 { width: 12%; }
.sub-traffic-width-13 { width: 13%; }
.sub-traffic-width-14 { width: 14%; }
.sub-traffic-width-15 { width: 15%; }
.sub-traffic-width-16 { width: 16%; }
.sub-traffic-width-17 { width: 17%; }
.sub-traffic-width-18 { width: 18%; }
.sub-traffic-width-19 { width: 19%; }
.sub-traffic-width-20 { width: 20%; }
.sub-traffic-width-21 { width: 21%; }
.sub-traffic-width-22 { width: 22%; }
.sub-traffic-width-23 { width: 23%; }
.sub-traffic-width-24 { width: 24%; }
.sub-traffic-width-25 { width: 25%; }
.sub-traffic-width-26 { width: 26%; }
.sub-traffic-width-27 { width: 27%; }
.sub-traffic-width-28 { width: 28%; }
.sub-traffic-width-29 { width: 29%; }
.sub-traffic-width-30 { width: 30%; }
.sub-traffic-width-31 { width: 31%; }
.sub-traffic-width-32 { width: 32%; }
.sub-traffic-width-33 { width: 33%; }
.sub-traffic-width-34 { width: 34%; }
.sub-traffic-width-35 { width: 35%; }
.sub-traffic-width-36 { width: 36%; }
.sub-traffic-width-37 { width: 37%; }
.sub-traffic-width-38 { width: 38%; }
.sub-traffic-width-39 { width: 39%; }
.sub-traffic-width-40 { width: 40%; }
.sub-traffic-width-41 { width: 41%; }
.sub-traffic-width-42 { width: 42%; }
.sub-traffic-width-43 { width: 43%; }
.sub-traffic-width-44 { width: 44%; }
.sub-traffic-width-45 { width: 45%; }
.sub-traffic-width-46 { width: 46%; }
.sub-traffic-width-47 { width: 47%; }
.sub-traffic-width-48 { width: 48%; }
.sub-traffic-width-49 { width: 49%; }
.sub-traffic-width-50 { width: 50%; }
.sub-traffic-width-51 { width: 51%; }
.sub-traffic-width-52 { width: 52%; }
.sub-traffic-width-53 { width: 53%; }
.sub-traffic-width-54 { width: 54%; }
.sub-traffic-width-55 { width: 55%; }
.sub-traffic-width-56 { width: 56%; }
.sub-traffic-width-57 { width: 57%; }
.sub-traffic-width-58 { width: 58%; }
.sub-traffic-width-59 { width: 59%; }
.sub-traffic-width-60 { width: 60%; }
.sub-traffic-width-61 { width: 61%; }
.sub-traffic-width-62 { width: 62%; }
.sub-traffic-width-63 { width: 63%; }
.sub-traffic-width-64 { width: 64%; }
.sub-traffic-width-65 { width: 65%; }
.sub-traffic-width-66 { width: 66%; }
.sub-traffic-width-67 { width: 67%; }
.sub-traffic-width-68 { width: 68%; }
.sub-traffic-width-69 { width: 69%; }
.sub-traffic-width-70 { width: 70%; }
.sub-traffic-width-71 { width: 71%; }
.sub-traffic-width-72 { width: 72%; }
.sub-traffic-width-73 { width: 73%; }
.sub-traffic-width-74 { width: 74%; }
.sub-traffic-width-75 { width: 75%; }
.sub-traffic-width-76 { width: 76%; }
.sub-traffic-width-77 { width: 77%; }
.sub-traffic-width-78 { width: 78%; }
.sub-traffic-width-79 { width: 79%; }
.sub-traffic-width-80 { width: 80%; }
.sub-traffic-width-81 { width: 81%; }
.sub-traffic-width-82 { width: 82%; }
.sub-traffic-width-83 { width: 83%; }
.sub-traffic-width-84 { width: 84%; }
.sub-traffic-width-85 { width: 85%; }
.sub-traffic-width-86 { width: 86%; }
.sub-traffic-width-87 { width: 87%; }
.sub-traffic-width-88 { width: 88%; }
.sub-traffic-width-89 { width: 89%; }
.sub-traffic-width-90 { width: 90%; }
.sub-traffic-width-91 { width: 91%; }
.sub-traffic-width-92 { width: 92%; }
.sub-traffic-width-93 { width: 93%; }
.sub-traffic-width-94 { width: 94%; }
.sub-traffic-width-95 { width: 95%; }
.sub-traffic-width-96 { width: 96%; }
.sub-traffic-width-97 { width: 97%; }
.sub-traffic-width-98 { width: 98%; }
.sub-traffic-width-99 { width: 99%; }
.sub-traffic-width-100 { width: 100%; }
.transaction-amount { padding: 0.85rem 1rem; white-space: nowrap; font-weight: 700; }
.transaction-positive { color: #22c55e; }
.transaction-negative { color: #ef4444; }
.text-danger { color: #ef4444; }
.text-warning { color: #f59e0b; }
