:root {
    --bg-color: #030303;
    --text-primary: #ffffff;
    --text-secondary: #9aa0a6;
    --text-hover: #ffffff;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --brand-glow-1: rgba(255, 60, 0, 0.4);
    --brand-glow-2: #ff3300;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-hover);
}

/* Background effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glow-effect {
    position: absolute;
    top: 40%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 65vw;
    height: 45vw;
    background: radial-gradient(ellipse at center, var(--brand-glow-1) 0%, rgba(255, 0, 0, 0) 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: drift 14s infinite alternate ease-in-out;
}

.glow-shape {
    position: absolute;
    top: 45%;
    left: 65%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 45vw;
    height: 25vw;
    background: var(--brand-glow-2);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(75px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: pulseShape 12s infinite alternate ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-45%, -45%) scale(1.05);
    }
}

@keyframes pulseShape {
    0% {
        transform: translate(-50%, -50%) rotate(-15deg) scaleY(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        opacity: 0.5;
    }

    100% {
        transform: translate(-52%, -48%) rotate(-5deg) scaleY(1.25);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
        opacity: 0.75;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    z-index: 10;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 500;
}

.star-icon {
    font-size: 1.4rem;
}

.nav-center {
    display: flex;
    gap: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-center a.active {
    color: var(--text-primary);
    position: relative;
}

.nav-center a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
}

.nav-center sup {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-left: -2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.login-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-hover);
}

.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #e6e6e6;
}

/* Main Layout */
.main-container {
    display: flex;
    justify-content: center;
    flex: 1;
    padding: 2rem 4rem;
    gap: 4rem;
    z-index: 10;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* This allows the sidebar to exist without pushing the "center" of the page off-axis */
.main-layout-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 200px; /* Symmetrical weighting */
    gap: 4rem;
    width: 100%;
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    font-size: 0.95rem;
    width: 200px;
    letter-spacing: 0.01em;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 6.5rem;
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.btn-large {
    padding: 1.1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 6px;
}

.btn-large:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.about-us {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem 0.6rem 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-us:hover {
    background: rgba(255, 255, 255, 0.12);
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    background-size: cover;
    background-position: center;
    position: relative;
}

.avatar:not(:first-child) {
    margin-left: -12px;
}

.av1 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.av2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    z-index: 1;
}

.about-us span {
    font-weight: 500;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.hero-description {
    color: #9aa0a6;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 580px;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 10;
}

.bottom-right-badge {
    position: absolute;
    bottom: -60px;
    left: 20px;
    width: 170px;
    height: 170px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bottom-right-badge::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.bottom-right-badge svg {
    margin: 0 auto 5px;
    display: block;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.badge-content {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.badge-content span {
    font-size: 0.65rem;
    color: #888;
    font-weight: 500;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 60, 0, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.btn-full {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: #fff;
    font-weight: 500;
}

.error-message {
    background: rgba(255, 60, 0, 0.1);
    border: 1px solid rgba(255, 60, 0, 0.3);
    color: #ff8866;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

/* Dashboard / Welcome */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.welcome-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.dashboard-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pricing Pages */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    position: relative;
    z-index: 10;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 60, 0, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 60, 0, 0.1);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(255, 60, 0, 0.08) 0%, rgba(10, 10, 10, 0.8) 100%);
    border-color: rgba(255, 60, 0, 0.4);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--brand-glow-2);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.pricing-tier {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card.popular .pricing-tier {
    color: #fff;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.pricing-price span {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.pricing-features li svg {
    color: var(--brand-glow-2);
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: #555;
}

.pricing-features li.disabled svg {
    color: #555;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.redeem-card {
    margin-top: 2rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: center;
    backdrop-filter: blur(20px);
}

.redeem-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.redeem-copy h2 {
    font-size: 2rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.03em;
}

.redeem-copy p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
}

.redeem-form {
    display: grid;
    gap: 0.9rem;
}

.redeem-field-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.redeem-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.redeem-input::placeholder {
    color: rgba(255, 255, 255, 0.36);
}

.redeem-input:focus {
    border-color: rgba(255, 60, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 60, 0, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.redeem-button {
    width: 100%;
    padding: 1rem;
}

@media (max-width: 900px) {
    .redeem-card {
        grid-template-columns: 1fr;
    }
}

/* Support Center & Notifications */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--brand-glow-2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 10px rgba(255, 60, 0, 0.6);
}

.notification-badge.inline-badge {
    position: static;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.support-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.support-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

.support-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    flex: 1;
    min-height: 500px;
    height: calc(100vh - 200px);
}

.ticket-list-card,
.ticket-detail-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ticket-list-header,
.ticket-detail-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-list {
    overflow-y: auto;
    flex: 1;
}

.ticket-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ticket-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--brand-glow-2);
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-item-header h4 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-open {
    background-color: #4CAF50;
    box-shadow: 0 0 8px #4CAF50;
}

.status-closed {
    background-color: #9E9E9E;
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Site Footer & Social Logos */
.site-footer {
    margin-top: auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-circle:hover {
    transform: translateY(-3px);
    border-color: var(--brand-glow-2);
    box-shadow: 0 4px 15px rgba(255, 60, 0, 0.3);
}

.social-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.status-badge.status-open {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.status-closed {
    background: rgba(158, 158, 158, 0.15);
    color: #9aa0a6;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.ticket-snippet {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ticket-date {
    color: #666;
    font-size: 0.8rem;
}

.ticket-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.message-bubble {
    max-width: 80%;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background: rgba(255, 60, 0, 0.15);
    border: 1px solid rgba(255, 60, 0, 0.3);
    border-bottom-right-radius: 4px;
}

.support-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.message-content {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    white-space: pre-wrap;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

.reply-form {
    padding: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    gap: 1rem;
}

.reply-form .form-input {
    flex: 1;
    margin: 0;
}

.loading-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-size: 0.95rem;
}

.empty-state {
    justify-content: center;
    align-items: center;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}
