:root {
    --bg-1: #061532;
    --bg-2: #0a1e46;
    --accent: #4da3ff;
    --accent-hover: #3d8ce6;
    --text: #e8f0ff;
    --muted: #9db2d6;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(157, 186, 220, 0.22);
    --success: #34c759;
    --warning: #ffcc00;
    --error: #ff3b30;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    user-select: none;
}

body {
    font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 800px at 80% 10%, #0f2a62 0%, transparent 60%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glow Effect */
.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.glow::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(77, 163, 255, 0.25), transparent 55%);
    top: 20%;
    left: 10%;
    filter: blur(40px);
    transform: translateZ(0);
}

/* Header & Navigation */
.header {
    position: relative;
    z-index: 100;
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand .logo {
    text-decoration: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    background: rgba(77, 163, 255, 0.13);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--glass-border);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    padding: 0.5rem;
    background: rgba(10, 30, 70, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    z-index: 1000;
}

.lang-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.lang-option.active {
    color: var(--accent);
    background: rgba(77, 163, 255, 0.1);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(77, 163, 255, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(77, 163, 255, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.glass-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 3rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
}

/* Downloads Page */
.downloads-page .container {
    max-width: 1000px;
}

.downloads-layout {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.latest-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.latest-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin: 0.2rem 0 0;
}

.download-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    background: rgba(77, 163, 255, 0.12);
    border: 1px solid rgba(77, 163, 255, 0.25);
    color: var(--text);
    font-weight: 700;
}

.pill-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.pill-value {
    font-size: 1rem;
    font-weight: 800;
}

.latest-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.meta-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.meta-value {
    font-weight: 800;
    font-size: 1.1rem;
}

.meta-value.success {
    color: var(--success);
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.steps {
    margin: 0.6rem 0 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(157, 186, 220, 0.14);
    color: var(--muted);
    font-weight: 600;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(77, 163, 255, 0.12);
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.panel-header h3 {
    font-size: 1.3rem;
    margin: 0.1rem 0;
}

.panel-subtext {
    color: var(--muted);
    line-height: 1.5;
    margin-top: 0.2rem;
}

.latest-download-btn {
    margin-top: auto;
}

.steps-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.older-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.older-select .form-input {
    min-width: 260px;
    flex: 1;
}

.older-select .btn {
    flex: 0 0 auto;
}

.older-inline {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(157, 186, 220, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.older-inline-header .panel-subtext {
    margin: 0.15rem 0 0;
}

@media (max-width: 900px) {
    .downloads-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .latest-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* FAQ Page */
.faq-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
    margin-bottom: 2.5rem;
    border-radius: 18px;
    backdrop-filter: blur(20px);
}

.faq-switch-btn {
    flex: 1;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.faq-switch-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.faq-switch-btn.is-active {
    background: rgba(77, 163, 255, 0.25);
    color: var(--text);
    box-shadow: 0 10px 25px rgba(77, 163, 255, 0.25);
}

.faq-sections {
    width: 100%;
}

.faq-section {
    display: none;
    animation: fadeInUp 0.35s ease;
}

.faq-section:not(.is-active) {
    animation: none;
}

.faq-section.is-active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-list .glass-card {
    padding: 0;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--muted);
    line-height: 1.7;
}

/* Maintenance Page */
body.maintenance-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.maintenance-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
}

.maintenance-card {
    max-width: 640px;
    width: 100%;
    padding: 3rem 3.5rem;
    text-align: center;
    backdrop-filter: blur(28px);
}

.maintenance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.maintenance-title {
    margin: 2rem 0 1rem;
    font-size: clamp(2.2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
}

.maintenance-subtitle {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.maintenance-description {
    margin: 0 auto 2rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 520px;
}

.maintenance-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 2rem 0;
}

.maintenance-admin {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.maintenance-actions {
    display: flex;
    justify-content: center;
}

.maintenance-actions .btn {
    min-width: 180px;
}

@media (max-width: 640px) {
    .maintenance-card {
        padding: 2.4rem 2rem;
    }
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(77, 163, 255, 0.2);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-header {
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--muted);
    font-size: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--muted);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
}

.price-period {
    font-size: 1rem;
    color: var(--muted);
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--muted);
    border-bottom: 1px solid rgba(157, 186, 220, 0.1);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--accent);
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(77, 163, 255, 0.08);
    border: 1px solid rgba(77, 163, 255, 0.2);
    border-radius: 12px;
}

.pricing-note p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Auth Pages */
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.auth-container {
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
}

.form-input {
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Discord Login Button */
.auth-notice {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-notice h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.auth-notice p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-notice .auth-error {
    margin-top: 1rem;
    color: #ff6b6b;
    font-weight: 600;
}

.maintenance-notice {
    backdrop-filter: blur(20px);
}

.auth-discord {
    margin: 2rem 0;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #5865F2;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
}

.btn-discord svg {
    flex-shrink: 0;
}

/* Profile Page */
.profile-info {
    margin-bottom: 3rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-details h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.profile-meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.profile-meta code {
    background: rgba(77, 163, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.licenses-section {
    margin-bottom: 3rem;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.license-card {
    padding: 1.5rem;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(157, 186, 220, 0.1);
}

.license-level {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.level-0 {
    background: rgba(157, 186, 220, 0.15);
    color: var(--muted);
}

.level-1 {
    background: rgba(77, 163, 255, 0.15);
    color: var(--accent);
}

.level-2 {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.license-expiry {
    font-size: 0.9rem;
    color: var(--muted);
}

.license-permanent {
    color: var(--accent);
    font-weight: 600;
}

.license-body p {
    margin: 0.75rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.license-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.license-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.license-actions .btn {
    flex: 0 0 auto;
}

.license-actions .btn[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

.license-uuid code {
    display: block;
    margin-top: 0.5rem;
    background: rgba(77, 163, 255, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.licenses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.license-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.license-row.expired {
    opacity: 0.6;
}

.license-row-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.license-row-uuid {
    background: rgba(77, 163, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.license-row-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.active {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.status-badge.expired {
    background: rgba(255, 59, 48, 0.15);
    color: var(--error);
}

.status-badge.permanent {
    background: rgba(77, 163, 255, 0.15);
    color: var(--accent);
}

.status-badge.status-open {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.status-badge.status-closed {
    background: rgba(107, 114, 128, 0.2);
    color: #d1d5db;
}

.status-badge.status-suspended {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.status-badge.status-unknown {
    background: rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
}

.license-date {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    padding: 2rem;
    border-top: 1px solid rgba(157, 186, 220, 0.1);
    background: rgba(6, 21, 50, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text);
}

.cursor-pointer {
    cursor: pointer;
}

.legal-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    line-height: 1.6;
}

.legal-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    color: var(--muted);
}

.legal-card a {
    color: var(--text);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.footer-services {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.services-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.service-status {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-green {
    background: var(--success);
    box-shadow: 0 0 10px rgba(52, 199, 89, 0.5);
}

.status-yellow {
    background: var(--warning);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.status-red {
    background: var(--error);
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        background: #0a1e46;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 30, 70, 0.98);
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .page-content {
        padding: 4rem 1.5rem 3rem;
    }

    .download-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-services {
        align-items: center;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .service-status {
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* Admin Pages */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(157, 186, 220, 0.1);
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: var(--text);
}

.admin-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.admin-tab svg {
    flex-shrink: 0;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(77, 163, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.stat-icon.stat-success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.stat-icon.stat-warning {
    background: rgba(255, 204, 0, 0.1);
    color: var(--warning);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Stats Breakdown */
.stats-breakdown {
    margin-bottom: 3rem;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.breakdown-card {
    padding: 1.5rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.breakdown-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.breakdown-bar {
    width: 100%;
    height: 8px;
    background: rgba(157, 186, 220, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--muted);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.breakdown-fill.level-1 {
    background: var(--accent);
}

.breakdown-fill.level-2 {
    background: #ffd700;
}

/* Create License Form */
.create-license {
    margin-bottom: 3rem;
}

.create-license h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.admin-form .form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-input.valid {
    border-color: var(--success) !important;
}

.form-input.invalid {
    border-color: var(--error) !important;
}

#uuid-feedback {
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

/* Admin Table */
.licenses-table {
    margin-bottom: 3rem;
}

.licenses-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.licenses-header .section-title {
    margin-bottom: 0;
}

.licenses-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* Users page search bar with margin */
.users-header .search-bar {
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1 1 220px;
}

.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.95rem;
}

.search-submit:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-clear:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
}

.search-clear.is-hidden {
    display: none;
}

.admin-message {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    font-weight: 600;
}

.admin-message.is-visible {
    display: block;
}

.admin-message.success {
    border-color: rgba(52, 199, 89, 0.6);
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.admin-message.error {
    border-color: rgba(255, 59, 48, 0.6);
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.dialog-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1200;
    padding: 1.5rem;
}

.dialog-overlay.is-visible {
    display: flex;
}

.dialog-box {
    width: min(90vw, 420px);
    background: rgba(10, 30, 70, 0.92);
    border: 1px solid rgba(157, 186, 220, 0.18);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    color: var(--text);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dialog-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.dialog-body {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.dialog-body p {
    margin: 0;
}

.dialog-message-separator {
    height: 0.75rem;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-danger {
    background: rgba(255, 59, 48, 0.18);
    border: 1px solid rgba(255, 59, 48, 0.35);
    color: #ff3b30;
}

.btn-danger:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: rgba(255, 59, 48, 0.6);
    color: #ff453a;
}

.table-container {
    overflow-x: auto;
    padding: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: rgba(77, 163, 255, 0.05);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 2px solid rgba(157, 186, 220, 0.1);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(157, 186, 220, 0.05);
    color: var(--muted);
    position: relative;
}

.admin-table td:last-child {
    overflow: visible;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-table tbody tr:hover {
    background: rgba(77, 163, 255, 0.03);
}

.table-uuid {
    background: rgba(77, 163, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-action {
    background: rgba(100, 116, 139, 0.1);
    color: var(--accent);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.btn-action:hover {
    background: rgba(100, 116, 139, 0.2);
    transform: scale(1.1);
}

/* Tooltip for action buttons */
.btn-action[title] {
    position: relative;
}

.btn-action[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10001;
    pointer-events: none;
}

.btn-delete {
    background: rgba(255, 59, 48, 0.1);
    color: var(--error);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.1);
}

.admin-table .no-results td {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
}

.pagination-info {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.pagination-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.pagination-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-dialog {
    position: relative;
    max-width: 720px;
    width: 100%;
    z-index: 1001;
    padding: 2rem;
    border-radius: 18px;
    overflow-y: auto;
    max-height: calc(100vh - 3rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal::-webkit-scrollbar,
.modal-dialog::-webkit-scrollbar {
    display: none;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-close {
    border: none;
    background: none;
    color: inherit;
    line-height: 1;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix dropdown background */
.admin-form select.form-input {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
}

.admin-form select.form-input option {
    background: var(--bg-2);
    color: var(--text);
}

/* Mobile Responsive for Admin */
@media (max-width: 768px) {
    .admin-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-tab {
        white-space: nowrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-container {
        border-radius: 0;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .licenses-header {
        align-items: flex-start;
    }

    .licenses-actions {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .licenses-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .licenses-actions {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .search-bar {
        min-width: 260px;
    }
}

/* Purchase Modal */
.purchase-modal .modal-dialog {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    background: rgba(10, 30, 70, 0.92);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 60px rgba(6, 21, 50, 0.6);
}
a { -webkit-user-drag: none; }
.hidden { display: none; }
.purchase-modal .modal-form { display: flex; flex-direction: column; }
.purchase-modal .form-row { display: flex; flex-direction: column; gap: 0.6rem; }
.form-label { font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.form-hint { font-size: 0.8rem; color: rgba(232, 240, 255, 0.65); }
.form-feedback { font-size: 0.83rem; min-height: 1.1rem; color: var(--muted); }
.form-feedback.is-error { color: var(--error); }
.form-input.is-invalid { border-color: rgba(255, 59, 48, 0.8); background: rgba(255, 59, 48, 0.08); }
.form-input.is-valid { border-color: rgba(52, 199, 89, 0.7); }
.duration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.85rem; }
.duration-option { position: relative; display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: all 0.2s ease; min-height: 120px; }
.duration-option:hover { border-color: var(--accent); background: rgba(77, 163, 255, 0.08); }
.duration-option.is-selected { border-color: var(--accent); background: rgba(77, 163, 255, 0.12); box-shadow: 0 8px 24px rgba(77, 163, 255, 0.2); }
.duration-option input { position: absolute; opacity: 0; pointer-events: none; }
.duration-option .duration-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.duration-option .duration-price { font-weight: 600; color: var(--accent); }
.duration-option .duration-discount { font-size: 0.75rem; font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: 0.05em; }
.purchase-summary { padding: 1.25rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border); }
.summary-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.summary-list { display: flex; flex-direction: column; gap: 0.75rem; }
.summary-item { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 0.95rem; }
.summary-item dt { font-weight: 600; }
.summary-item dd { margin: 0; color: var(--text); font-weight: 600; }
.summary-item.summary-total dd { font-size: 1.2rem; color: var(--accent); }
.summary-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.btn-paypal { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.95rem 1.5rem; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: all 0.2s ease; border: none; }
.btn-paypal .label-default, .btn-paypal .label-active { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-paypal .label-active { display: none; }
.btn-paypal.is-disabled { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--glass-border); cursor: not-allowed; box-shadow: none; }
.btn-paypal.is-ready { background: #003087; color: #ffffff; box-shadow: 0 10px 28px rgba(0, 48, 135, 0.35); }
.btn-paypal.is-ready .label-default { display: none; }
.btn-paypal.is-ready .label-active { display: inline-flex; }
.btn-paypal.is-ready:hover { background: #00216b; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0, 33, 107, 0.45); }
.btn-paypal.is-loading { opacity: 0.75; pointer-events: none; }
.paypal-icon { display: block; }

.profile-dialog-description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.profile-dialog-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-dialog-error {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff7269;
    font-size: 0.9rem;
}

.profile-dialog-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-dialog-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.profile-dialog-help {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.profile-duration-summary {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(77, 163, 255, 0.25);
    background: rgba(77, 163, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-summary-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.profile-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.profile-summary-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.profile-summary-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.profile-summary-per-month {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.profile-duration-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-duration-option {
    position: relative;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(157, 186, 220, 0.2);
    border-radius: 12px;
    background: rgba(10, 30, 70, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.profile-duration-option:hover {
    border-color: rgba(77, 163, 255, 0.6);
    transform: translateY(-1px);
}

.profile-duration-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-duration-option.is-selected {
    border-color: rgba(77, 163, 255, 0.9);
    background: rgba(77, 163, 255, 0.12);
}

.profile-duration-label {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.profile-duration-discount {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
}

.profile-dialog-box .btn.is-loading {
    opacity: 0.75;
}

.support-logs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.support-log-card {
    padding: 1.5rem;
}

.support-log-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.support-log-user {
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.support-log-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.support-log-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.support-log-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

.support-log-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.chat-message {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
}

.chat-message.chat-user {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
}

.chat-message.chat-staff {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
}

.chat-message.chat-system {
    background: rgba(107, 114, 128, 0.08);
    border-style: dashed;
    color: #e5e7eb;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.chat-author {
    font-weight: 700;
}

.chat-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.chat-message-body {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.chat-attachments {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-attachment {
    font-size: 0.85rem;
    color: #fbbf24;
    text-decoration: none;
}

.chat-attachment:hover {
    text-decoration: underline;
}

.chat-empty {
    color: var(--muted);
    font-style: italic;
}

.admin-alert {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.page-actions {
    margin: 1rem 0 2rem;
}

@media (max-width: 768px) {
    .modal {
        align-items: flex-start;
        padding: 1rem;
    }

    .modal-dialog {
        padding: 1.75rem;
        max-height: calc(100vh - 2rem);
    }

    .purchase-modal .modal-form {
        gap: 0.5rem;
    }

    .duration-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        padding: 1.5rem;
    }

    .purchase-summary {
        padding: 1rem;
    }

    .btn-paypal {
        width: 100%;
    }
}
