@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Vazirmatn:wght@300;400;700;900&display=swap');

:root {
    --primary: 24 95% 53%; /* #f97316 (Orange) */
    --primary-hover: 18 90% 48%; /* #ea580c */
    --primary-glow: rgba(249, 115, 22, 0.15);
    --primary-glow-hover: rgba(249, 115, 22, 0.35);
    
    --background: 0 0% 3%; /* #080808 */
    --card-bg: 0 0% 7%; /* #121212 */
    --card-border: 0 0% 15%; /* #262626 */
    --card-border-glow: 24 95% 53% / 0.2;
    
    --text-primary: 0 0% 98%; /* #fafafa */
    --text-secondary: 0 0% 63%; /* #a3a3a3 */
    --text-muted: 0 0% 40%; /* #666666 */
    
    --font-fa: 'Vazirmatn', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    font-family: var(--font-fa);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Force standard font inheritance for forms and buttons */
button, input, select, textarea, .btn, .form-control {
    font-family: var(--font-fa);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--card-border));
    border-radius: 10px;
    border: 2px solid hsl(var(--background));
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}

/* Selection */
::selection {
    background-color: hsl(var(--primary));
    color: white;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 12px 0;
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    position: relative; /* Supports absolute centering of links */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}
.nav-logo img:hover {
    transform: scale(1.05);
}

/* Absolutely centered navigation buttons */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.nav-links a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: hsl(var(--text-primary));
    background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-hover)));
    color: white;
    box-shadow: 0 8px 24px -6px rgba(249, 115, 22, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(249, 115, 22, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-primary));
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
}
.btn-outline:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
}

/* Square grid background overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../assets/grid.svg');
    background-position: center top;
    background-repeat: repeat;
    mask-image: linear-gradient(180deg, white 20%, rgba(255, 255, 255, 0) 80%);
    -webkit-mask-image: linear-gradient(180deg, white 20%, rgba(255, 255, 255, 0) 80%);
    opacity: 0.4;
}

.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero title: Letter-by-letter slide-in and hover magnification animations */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 6.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    direction: ltr;
    display: inline-flex;
    user-select: none;
}

.hero-title span {
    display: inline-block;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.7) 70%, hsl(var(--primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: letterIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.3), text-shadow 0.2s, color 0.2s;
    cursor: default;
}

.hero-title span:hover {
    transform: scale(1.3) translateY(-10px);
    background: hsl(var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(249, 115, 22, 0.8);
    z-index: 10;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: hsl(var(--text-secondary));
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ip-copy-btn {
    direction: ltr;
    font-family: var(--font-en);
    letter-spacing: 1px;
}

/* Floating MC Items */
.absolute-item {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.2;
    animation: floatItem 6s ease-in-out infinite;
}

.pixelated-item {
    width: clamp(48px, 8vw, 80px);
    height: clamp(48px, 8vw, 80px);
    object-contain: fit;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
}

@keyframes floatItem {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(to left, #fff, hsl(var(--primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: hsl(var(--text-secondary));
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
}

/* Containers */
section {
    padding: 80px 24px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards & Glassmorphism */
.glass-card {
    background: rgba(18, 18, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(249, 115, 22, 0.05);
    transform: translateY(-4px);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
}

/* Gamemodes */
.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gamemode-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gamemode-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.gamemode-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
}

.gamemode-title {
    font-size: 18px;
    font-weight: 700;
}

.gamemode-desc {
    color: hsl(var(--text-secondary));
    font-size: 13.5px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.gamemode-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    font-size: 12px;
    color: hsl(var(--text-muted));
}

.gamemode-tag {
    background: rgba(249, 115, 22, 0.1);
    color: hsl(var(--primary));
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .gamemodes-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gamemode-card {
        display: grid;
        grid-template-columns: 240px 1fr;
        grid-template-rows: auto auto;
        column-gap: 40px;
        row-gap: 20px;
        align-items: center;
        text-align: right;
    }

    .gamemode-header {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 40px;
        height: 100%;
    }

    .gamemode-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 8px;
    }

    .gamemode-icon svg {
        width: 32px;
        height: 32px;
    }

    .gamemode-title {
        font-size: 22px;
        margin: 0;
    }

    .gamemode-desc {
        grid-column: 2;
        grid-row: 1;
        font-size: 15.5px;
        line-height: 1.8;
        margin-bottom: 0;
    }

    .gamemode-stats {
        grid-column: 2;
        grid-row: 2;
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
        padding-top: 20px;
        margin-top: 0;
        font-size: 13.5px;
    }
}

/* Our Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
    justify-content: center;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 24px;
    background: rgba(18, 18, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.team-card:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(249, 115, 22, 0.08);
    transform: translateY(-8px);
}

.team-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-card:hover .team-avatar-wrapper {
    border-color: hsl(var(--primary));
    transform: scale(1.05) rotate(4deg);
    background: rgba(249, 115, 22, 0.05);
}

.team-avatar {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    object-fit: contain;
}

.team-name {
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 700;
    color: hsl(var(--text-primary));
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.team-role-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-owner {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}

.badge-dev {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
}

.team-card:hover .badge-owner {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.team-card:hover .badge-dev {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Rules Section */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 16px;
    transition: var(--transition);
}

.rule-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.01);
}

.rule-number {
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 800;
    color: hsl(var(--primary));
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rule-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.rule-desc {
    font-size: 12.5px;
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

/* Modal Overlay & Modal box styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 420px;
    transform: scale(0.9);
    transition: var(--transition);
    position: relative;
}

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

.modal-close-btn {
    position: absolute;
    top: 16px;
    left: 16px; /* Left side for RTL layouts */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-secondary));
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-logo {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: hsl(var(--text-secondary));
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    transition: var(--transition);
    text-align: right;
}

.form-control:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
}

.form-control[type="email"], .form-control[type="password"], .form-control.english-input {
    text-align: left;
    direction: ltr;
    font-family: var(--font-en);
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    transition: var(--transition);
}

.auth-link a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13.5px;
    text-align: right;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Footer & Trust Icons */
footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 60px 24px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
}

.footer-desc {
    color: hsl(var(--text-secondary));
    font-size: 13.5px;
    max-width: 380px;
    margin-bottom: 24px;
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-size: 13.5px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: hsl(var(--primary));
    padding-right: 4px;
}

.footer-trust {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-trust h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.trust-badges {
    display: flex;
    gap: 16px;
}

.trust-badge-placeholder {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: hsl(var(--text-muted));
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
}

.trust-badge-placeholder:hover {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.01);
    color: hsl(var(--text-secondary));
}

.trust-badge-placeholder i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: hsl(var(--text-muted));
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
}

/* Dashboard Page */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 40px;
}

.dashboard-sidebar {
    height: fit-content;
}

.dashboard-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 2px solid rgba(249, 115, 22, 0.3);
    image-rendering: pixelated;
}

.dashboard-username {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-role {
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--primary));
    background: rgba(249, 115, 22, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: right;
}

.dashboard-nav-item:hover, .dashboard-nav-item.active {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.dashboard-nav-item.active {
    border-color: rgba(249, 115, 22, 0.3);
    color: hsl(var(--primary));
    background: rgba(249, 115, 22, 0.02);
}

.dashboard-nav-item svg {
    flex-shrink: 0;
}

.dashboard-content-panel {
    display: none;
}

.dashboard-content-panel.active {
    display: block;
}

.dashboard-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

/* Custom Table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.custom-table th {
    text-align: right;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-table td {
    padding: 14px 20px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

/* Badge classes */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.badge-open { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-closed { background: rgba(115, 115, 115, 0.15); color: #a3a3a3; }
.badge-replied { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

/* Support Tickets Styles */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.ticket-item:hover {
    border-color: rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.01);
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-title {
    font-weight: 700;
    font-size: 14.5px;
}

.ticket-date {
    font-size: 11px;
    color: hsl(var(--text-muted));
}

/* Ticket Chat */
.ticket-chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 20px;
}

.chat-message {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
}

.message-user {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    align-self: flex-start;
    border-top-right-radius: 0;
}

.message-admin {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    align-self: flex-end;
    border-top-left-radius: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: hsl(var(--text-muted));
    margin-bottom: 6px;
}

.message-sender {
    font-weight: 700;
}

.chat-input-area {
    display: flex;
    gap: 12px;
}

.chat-input-area textarea {
    flex-grow: 1;
    resize: none;
    height: 50px;
}

/* Clipboard Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: 'کپی شد!';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-fa);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tooltip.show::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.dropdown-chevron {
    transition: var(--transition);
}

.user-dropdown.active .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: right;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: hsl(var(--text-primary));
}

.dropdown-item.logout-item {
    color: #ef4444;
}

/* Shop Styles */
.shop-section {
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.rank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    padding: 35px 25px;
    background: rgba(18, 18, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rank-card:hover {
    transform: translateY(-8px);
}

/* Rank themes */
.rank-card.rank-universe {
    border-color: rgba(168, 85, 247, 0.25);
    background: radial-gradient(circle at top, rgba(168, 85, 247, 0.12) 0%, rgba(18, 18, 18, 0.4) 80%);
}
.rank-card.rank-universe:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15), 0 0 30px rgba(168, 85, 247, 0.05);
}

.rank-card.rank-plus3 {
    border-color: rgba(249, 115, 22, 0.25);
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.12) 0%, rgba(18, 18, 18, 0.4) 80%);
}
.rank-card.rank-plus3:hover {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.15), 0 0 30px rgba(249, 115, 22, 0.05);
}

.rank-card.rank-plus2 {
    border-color: rgba(6, 182, 212, 0.25);
    background: radial-gradient(circle at top, rgba(6, 182, 212, 0.12) 0%, rgba(18, 18, 18, 0.4) 80%);
}
.rank-card.rank-plus2:hover {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.15), 0 0 30px rgba(6, 182, 212, 0.05);
}

.rank-card.rank-plus {
    border-color: rgba(34, 197, 94, 0.25);
    background: radial-gradient(circle at top, rgba(34, 197, 94, 0.12) 0%, rgba(18, 18, 18, 0.4) 80%);
}
.rank-card.rank-plus:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.15), 0 0 30px rgba(34, 197, 94, 0.05);
}

.rank-name {
    font-size: 32px;
    font-weight: 800;
    margin-top: 10px;
    font-family: var(--font-en);
    letter-spacing: 1px;
}

.rank-universe .rank-name {
    background: linear-gradient(135deg, #c084fc, #e9d5ff, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.rank-plus3 .rank-name { color: #f97316; }
.rank-plus2 .rank-name { color: #06b6d4; }
.rank-plus .rank-name { color: #22c55e; }

.rank-price {
    font-size: 20px;
    font-weight: 800;
    color: hsl(var(--text-primary));
}

.rank-price span {
    font-size: 13px;
    color: hsl(var(--text-secondary));
    margin-right: 4px;
    font-weight: 400;
}

/* Modal details */
.modal-vertical {
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
}

.modal-section-title {
    font-size: 13px;
    color: hsl(var(--text-muted));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 12px;
    font-weight: 600;
}

.features-list {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
    color: hsl(var(--primary));
    font-family: var(--font-en);
    font-size: 20px;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249, 115, 22, 0.03);
    border: 1px solid rgba(249, 115, 22, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.username-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    gap: 12px;
}

.username-display {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.username-input-wrapper {
    display: none;
    flex-grow: 1;
    align-items: center;
    gap: 8px;
}

.username-edit-input {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.username-edit-btn {
    font-size: 12px;
    padding: 6px 14px;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    section {
        padding: 50px 16px;
    }
    
    .glass-card {
        padding: 24px;
    }
}

