:root {
    --bg-color: #1a1d29;
    --text-primary: #ffffff;
    --text-secondary: #b0b3b8;
    --bg-card: #242838;
    --border-color: #3a3f51;
    --accent: #ff5c00;
    --accent-90: #e65200;
    color-scheme: dark;
    scrollbar-color: rgba(255,255,255,0.12) #0f1419;
}

.btn i,
button i {
    margin-right: 0.5rem;
}

* {
    box-sizing: border-box;
}

html {
    visibility: visible;
    background: #0f1419;
    margin: 0;
    padding: 0;
    accent-color: auto;
    scrollbar-color: rgba(255,255,255,0.12) #0f1419;
}

@supports selector(::-webkit-scrollbar-thumb) {
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f1419; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #0f1419;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

::selection {
    background: rgba(255, 92, 0, 0.3);
    color: inherit;
}

*:not(input):not(textarea):not([contenteditable]) {
    cursor: default;
    caret-color: transparent;
}

*:not(input):not(textarea):not([contenteditable])::selection {
    caret-color: transparent;
}

.navbar,
.card,
.pricing-card,
.dashboard-card,
.alert,
.btn,
button,
.modal {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    background: rgba(14, 16, 27, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar .container { display: flex; align-items: center; }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
    line-height: 1;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.07);
}

.nav-chevron {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.active .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 18px;
    background: transparent;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(20, 23, 36, 0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0.6rem 0.4rem;
    min-width: 240px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,92,0,0.08);
    backdrop-filter: blur(20px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
    visibility: hidden;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:hover::after {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
    visibility: visible;
}

.nav-dropdown .dropdown-menu:hover {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 9px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown .dropdown-menu a:hover {
    background: rgba(255,92,0,0.12);
    color: #ff8c42;
    transform: translateX(3px);
}

.nav-dropdown .dropdown-menu a i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.nav-dropdown .dropdown-menu a:hover i { opacity: 1; }

.nav-dropdown .dropdown-menu a[href*="plan/basic"] { color: #ffb380 !important; }
.nav-dropdown .dropdown-menu a[href*="plan/basic"] i.fa-circle { color: #FF5C00 !important; }
.nav-dropdown .dropdown-menu a[href*="plan/premium"] { color: #66b2ff !important; }
.nav-dropdown .dropdown-menu a[href*="plan/premium"] i.fa-circle { color: #007bff !important; }
.nav-dropdown .dropdown-menu a[href*="plan/partnership"] { color: #ff6b8a !important; }
.nav-dropdown .dropdown-menu a[href*="plan/partnership"] i.fa-circle { color: #dc143c !important; }

.nav-dropdown .dropdown-menu .menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0.4rem 0.5rem;
    border: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff5c00 0%, #ff8042 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(255,92,0,0.28);
    transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.nav-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 20px rgba(255,92,0,0.4);
    transform: translateY(-1px);
}

.nav-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,0.75);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger.nav-ham-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.nav-ham-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.nav-ham-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav-hamburger { display: flex; }

    .nav-center {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(14, 16, 27, 0.97);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(20px);
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        z-index: 1099;
    }

    .nav-center.nav-open { display: flex; }

    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        border-radius: 9px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .dropdown-trigger.nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: unset !important;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 10px;
        margin-top: 0.25rem;
        backdrop-filter: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none !important;
    }

    .nav-actions { gap: 0.4rem; }
    .nav-logo-text { display: none; }
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
}

.btn-large {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-90);
}

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

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

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-feature-gradient {
    background: linear-gradient(135deg, #ff5c00 0%, #e65100 100%);
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-feature-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 92, 0, 0.45);
}

.flash-container {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
    width: auto;
    max-width: min(600px, 90vw);
}

.flash {
    pointer-events: auto;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    animation: flashSlideIn 0.35s ease-out;
}

@keyframes flashSlideIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flash .close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0 0.15rem;
    flex-shrink: 0;
}
.flash .close-btn:hover { opacity: 1; }

.flash-success {
    background: rgba(21, 87, 36, 0.95);
    color: #a3e4b0;
    border: 1px solid rgba(40, 167, 69, 0.5);
}
.flash-success .close-btn { color: #a3e4b0; }

.flash-info {
    background: rgba(12, 84, 96, 0.95);
    color: #8ad4e0;
    border: 1px solid rgba(23, 162, 184, 0.5);
}
.flash-info .close-btn { color: #8ad4e0; }

.flash-warning {
    background: rgba(133, 100, 4, 0.95);
    color: #ffe28a;
    border: 1px solid rgba(255, 193, 7, 0.5);
}
.flash-warning .close-btn { color: #ffe28a; }

.flash-error, .flash-danger {
    background: rgba(114, 28, 36, 0.95);
    color: #f5a5ad;
    border: 1px solid rgba(220, 53, 69, 0.5);
}
.flash-error .close-btn, .flash-danger .close-btn { color: #f5a5ad; }

.hero {
    text-align: center;
    padding: 4rem 0;
    background: #1a1d29;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    margin: 0;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #b0b3b8;
    max-width: 720px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
}

.hero-image img {
    width: min(100%, 560px);
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.features-section {
    background: #1a1d29;
    padding: 5rem 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.section-subtitle {
    text-align: center;
    color: #b0b3b8;
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: linear-gradient(135deg, #242838 0%, #1f2332 100%);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 92, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card-hidden.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

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

.feature-card h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #b0b3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .features-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn-show-more,
    .btn-large {
        width: 100%;
        max-width: 100%;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn-large {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        padding: 2rem 1rem;
    }

    .brand-text {
        font-size: 2.25rem;
    }

    .hero-subtitle-modern {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 60%;
        height: 1px;
        margin: 0.5rem auto;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2.5rem;
    }

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

    .footer-column {
        text-align: center;
    }

    .footer-column ul {
        align-items: center;
    }
}

.btn-show-more {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-show-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.btn-show-more i {
    transition: transform 0.3s ease;
}

.btn-show-more.expanded i {
    transform: rotate(180deg);
}

.cta-section {
    padding: 5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #1a1d29 0%, #0f111a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-section h2 {
    margin-bottom: 1rem;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section p {
    color: #b0b3b8;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pricing-section {
    padding: 4rem 1.5rem 5rem;
    background: #111520;
    min-height: calc(100vh - 180px);
}

.pricing-header {
    text-align: center;
    color: white;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.pricing-header h1 {
    margin-bottom: .5rem;
    font-size: 2.5rem;
    letter-spacing: .04em;
}

.pricing-header p {
    color: #b0b3b8;
    margin-bottom: 1.25rem;
}

.dashboard-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
    background: #1a1d29;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin-bottom: 0.5rem;
    color: white;
}

.dashboard-header p {
    color: #b0b3b8;
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.guild-card {
    background: #242838;
    border: 1px solid #3a3f51;
    border-radius: 8px;
    padding: 1.5rem;
}

.guild-card h3 {
    margin: 0 0 1rem 0;
    color: white;
}

.guild-card .btn {
    width: 100%;
    margin-top: 1rem;
}

footer {
    background: transparent;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

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

.footer-brand h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #9ca4c7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #9ca4c7;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 92, 0, 0.15);
    border-color: rgba(255, 92, 0, 0.3);
    color: #ff5c00;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    margin: 0 0 1.25rem 0;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

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

.footer-column ul li {
    margin: 0;
}

.footer-column a {
    color: #9ca4c7;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.footer-column a i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-column a:hover {
    color: #ff5c00;
    transform: translateX(3px);
}

.footer-column a:hover i {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #7b82a5;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 0.8rem;
}

.feature-list-button-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.feature-list-button-wrapper .btn-feature-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        height: 56px;
    }

    .nav-container {
        height: 56px;
    }

    .btn-large,
    .cta-buttons .btn-large,
    .feature-list-button-wrapper .btn-feature-gradient {
        width: 100%;
        max-width: 100%;
    }

    .feature-list-button-wrapper,
    .cta-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column ul {
        align-items: center;
    }

    .footer-column a {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multi-select {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.multi-select-picker {
    background: #12162a;
    border: 1px solid #2b3453;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    color: #e4e6eb;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease;
}

.multi-select-picker:focus {
    border-color: rgba(255, 92, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.18);
}

.multi-select-picker:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.multi-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.multi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #0f1426;
    border: 1px solid #2f3656;
    color: #f3f4ff;
    font-size: 0.85rem;
    font-weight: 500;
}

.multi-chip-remove {
    background: transparent;
    border: none;
    color: rgba(255, 92, 0, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.multi-chip-remove:hover {
    color: rgba(255, 92, 0, 1);
}

.multi-select-placeholder {
    color: #7a81a3;
    font-size: 0.9rem;
}

.emoji-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emoji-picker-wrapper input {
    flex: 1;
}

.emoji-picker-trigger {
    background: rgba(58, 72, 112, 0.35);
    border: 1px solid rgba(98, 118, 176, 0.25);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.emoji-picker-trigger:hover {
    background: rgba(74, 90, 135, 0.55);
    border-color: rgba(255, 92, 0, 0.4);
}

.emoji-picker-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 320px;
    max-height: 350px;
    background: #1a1e30;
    border: 1px solid rgba(98, 118, 176, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.emoji-picker-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.emoji-search {
    width: 100%;
    background: rgba(15, 19, 35, 0.8);
    border: 1px solid rgba(98, 118, 176, 0.25);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #e0e4f6;
    font-size: 0.9rem;
}

.emoji-search:focus {
    outline: none;
    border-color: rgba(255, 92, 0, 0.5);
}

.emoji-picker-tabs {
    display: flex;
    padding: 0.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.emoji-tab {
    background: transparent;
    border: none;
    padding: 0.4rem 0.6rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
    opacity: 0.6;
}

.emoji-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.9;
}

.emoji-tab.active {
    background: rgba(255, 92, 0, 0.2);
    opacity: 1;
}

.emoji-picker-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.emoji-category {
    margin-bottom: 0.75rem;
}

.emoji-category.hidden {
    display: none;
}

.emoji-category-label {
    color: #9ca4c7;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
}

.emoji-item {
    background: transparent;
    border: none;
    padding: 0.35rem;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.15);
}

.emoji-item.custom-emoji img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@supports selector(::-webkit-scrollbar-thumb) {
.emoji-picker-content::-webkit-scrollbar {
    width: 6px;
}

.emoji-picker-content::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-picker-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

}

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 400px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #fff;
    pointer-events: auto;
    animation: toast-in 0.3s ease-out forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.toast.toast-error {
    background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
    border: 1px solid rgba(255,255,255,0.1);
}
.toast.toast-warning {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
    border: 1px solid rgba(255,255,255,0.1);
}
.toast.toast-success {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border: 1px solid rgba(255,255,255,0.1);
}
.toast.toast-info {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    border: 1px solid rgba(255,255,255,0.1);
}
.toast i {
    font-size: 1rem;
    flex-shrink: 0;
}
.toast .toast-msg {
    flex: 1;
    line-height: 1.35;
}
.toast .toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.2rem;
    flex-shrink: 0;
}
.toast .toast-close:hover { color: #fff; }
.toast.toast-out {
    animation: toast-out 0.25s ease-in forwards;
}
@keyframes unsaved-slide-up {
    from { transform: translateX(-50%) translateY(100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.unsaved-changes-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: none;
    align-items: center;
    gap: 1rem;
    max-width: min(92vw, 620px);
    width: auto;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #dc3545 0%, #e83e58 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(220, 53, 69, 0.38), 0 0 0 1px rgba(255,255,255,0.12);
    font-size: 0.95rem;
    font-weight: 700;
    pointer-events: auto;
    animation: unsaved-slide-up 0.25s ease-out;
}
.unsaved-changes-indicator.is-visible {
    display: flex;
}
.unsaved-changes-indicator__label {
    color: #fff;
    white-space: nowrap;
}
.unsaved-changes-indicator__button {
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.unsaved-changes-indicator__button:hover {
    transform: translateY(-1px);
}
.unsaved-changes-indicator__button--save {
    background: #fff;
    color: #b42336;
    border: 1px solid #fff;
}
.unsaved-changes-indicator__button--discard {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
}
@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}
@media (max-width: 600px) {
    .toast-container {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
    .toast {
        width: 100%;
        box-sizing: border-box;
    }
    .flash-container {
        top: 60px;
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        max-width: none;
        width: auto;
    }
    .flash {
        width: 100%;
        box-sizing: border-box;
    }
    .unsaved-changes-indicator {
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        width: auto;
        min-width: 0;
        bottom: 10px;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .unsaved-changes-indicator__button {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}
