:root {
    --bg-color: #1a1d29;
    --text-primary: #ffffff;
    --text-secondary: #b0b3b8;
    --bg-card: #242838;
    --border-color: #3a3f51;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #1a1d29;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    background: #242838;
    border-bottom: 1px solid #3a3f51;
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.nav-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.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 messages */
.flash-container {
    margin: 1rem 0;
}

.flash {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: #d4edda;
    color: #155724;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
}

/* Hero Section */
.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 */
.features-section {
    background: #1a1d29;
    padding: 3rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: white;
}

.section-subtitle {
    text-align: center;
    color: #b0b3b8;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.feature-card h3 {
    color: white;
}

.feature-card p {
    color: #b0b3b8;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* CTA Section */
.cta-section {
    padding: 4rem 1rem;
    text-align: center;
    background: #242838;
    border-top: 1px solid #3a3f51;
    border-bottom: 1px solid #3a3f51;
}

.cta-section h2 {
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    color: #b0b3b8;
}

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

/* Pricing */
.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;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: #1f2332;
    border: 1px solid #323953;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(8, 10, 24, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.pricing-card .pricing-card-content {
    padding: 2.5rem 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    height: 100%;
}

.pricing-card.featured {
    border-color: rgba(255, 92, 0, 0.4);
    box-shadow: 0 32px 80px rgba(255, 92, 0, 0.18);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 72px rgba(7, 9, 20, 0.45);
    border-color: rgba(82, 97, 189, 0.35);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff5c00, #ff8c42);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.tier-logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    align-self: center;
}

.pricing-card h2 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    text-align: center;
}

.price-display {
    text-align: center;
    color: white;
}

.price-display .price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.price-display .price-period,
.price-display .price-annual {
    color: #b6bad4;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.features-list li {
    display: flex;
    gap: 0.6rem;
    color: #dde2f3;
    font-size: 0.95rem;
    line-height: 1.5;
}

.features-list i {
    color: #52c234;
    margin-top: 0.2rem;
}

.card-button-container {
    padding: 0 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.card-button-container a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-button-container a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(12, 14, 32, 0.35);
}

.features-list-button-container {
    display: flex;
    justify-content: center;
}

.features-list-button-container .btn-feature-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.features-list-button-container .btn-feature-list:hover {
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .pricing-container {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 2rem;
    }
}

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

    .pricing-header h1 {
        font-size: 2.1rem;
    }

    .pricing-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .pricing-card .pricing-card-content {
        padding: 2rem 1.75rem;
    }

    .card-button-container {
        padding: 0 1.75rem 2rem;
    }
}

/* Dashboard */
.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 */
footer {
    background: #242838;
    border-top: 1px solid #3a3f51;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-top: 0;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #b0b3b8;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #3a3f51;
    color: #b0b3b8;
}

.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;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    .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 {
        flex-direction: column;
        text-align: center;
    }
}

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

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

/* Multi-select component */
.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;
}
