@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

/* Warlode MMORPG Site Styles */

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8a5c;
    --secondary: #1a1a2e;
    --dark: #0d1117;
    --darker: #010409;
    --card-bg: #161b22;
    --text-light: #e6edf3;
    --text-muted: #7d8590;
    --border: #30363d;
    --gold: #d4a853;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    --gradient-dark: linear-gradient(180deg, #0d1117 0%, #010409 100%);
    --shadow-glow: 0 0 40px rgba(255,107,53,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.98);
    padding: 8px 0;
}

.brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255,107,53,0.3);
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(255,107,53,0.1);
}

.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}

.dropdown-item {
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 8px;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(255,107,53,0.1);
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,107,53,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-online-strip {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.hero-online-strip > div {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 107, 53, 0.28);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.hero-online-strip i {
    color: var(--primary-light);
    font-size: 1.22rem;
}

.hero-online-strip span {
    color: #fff;
    font-size: 1.28rem;
    font-weight: 800;
}

.hero-online-strip strong {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255,107,53,0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,107,53,0.4);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-hero-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
}

.section-darker {
    background: var(--darker);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* Cards */
.card-game {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.card-game:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-game-body {
    padding: 25px;
}

.card-game-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-game-type {
    display: inline-block;
    background: rgba(255,107,53,0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.card-game-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Character Cards */
.character-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.character-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.character-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.character-card:hover .character-image {
    transform: scale(1.05);
}

.character-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(13,17,23,0.95));
}

.character-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.character-type {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Map Cards */
.map-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.map-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.map-card:hover::before {
    transform: scaleX(1);
}

.map-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.map-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,107,53,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.map-name {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.map-difficulty {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.difficulty-beginner { background: rgba(35,134,54,0.2); color: #3fb950; }
.difficulty-easy { background: rgba(47,129,247,0.2); color: #58a6ff; }
.difficulty-medium { background: rgba(210,153,34,0.2); color: #d29922; }
.difficulty-hard { background: rgba(248,81,73,0.2); color: #f85149; }
.difficulty-expert { background: rgba(139,148,158,0.2); color: #8b949e; }

/* Gallery */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,17,23,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Streamer Cards */
.streamer-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.streamer-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.streamer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 15px;
}

.streamer-name {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.streamer-platform {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255,107,53,0.05);
}

.faq-question h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.faq-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.btn-cta {
    background: #fff;
    color: var(--primary-dark);
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--darker);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--darker);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-desc {
    color: #fff;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.btn-download {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: #fff;
    margin: 0;
}

/* News Cards */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-body {
    padding: 25px;
}

.news-category {
    display: inline-block;
    background: rgba(255,107,53,0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Account Panel */
.account-panel-shell {
    padding-top: 120px;
    min-height: 80vh;
    background:
        radial-gradient(circle at 18% 10%, rgba(211, 160, 83, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(7, 9, 14, 0.84), rgba(7, 9, 14, 0.98)),
        url("../../images/alvis2-royal-hero.jpg") center top / cover fixed;
}

.account-hero,
.account-card {
    border: 1px solid rgba(211, 160, 83, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(13, 17, 25, 0.86);
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}

.account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 4vw, 44px);
    background:
        linear-gradient(100deg, rgba(13, 17, 25, 0.92), rgba(37, 25, 12, 0.74)),
        url("../../images/oyuncu_paneli.png") center / cover no-repeat;
}

.account-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary-light);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.account-hero h1 {
    margin: 0;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.98;
}

.account-hero p,
.account-card-head p,
.account-action-box p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.account-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.account-status {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #a7f3d0;
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 999px;
    background: rgba(63, 185, 80, 0.12);
    font-weight: 800;
}

.account-wallet {
    color: #ffe2a6;
    border-color: rgba(211, 160, 83, 0.34);
    background: rgba(211, 160, 83, 0.12);
}

.account-wallet.is-mp {
    color: #bfe9ff;
    border-color: rgba(89, 178, 255, 0.34);
    background: rgba(89, 178, 255, 0.12);
}

.account-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.9fr;
    gap: 20px;
    align-items: stretch;
}

.account-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.account-quick-card {
    min-height: 148px;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 18px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(211, 160, 83, 0.22);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(12, 16, 24, 0.82);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.account-quick-card:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 203, 112, 0.44);
    background:
        linear-gradient(180deg, rgba(211, 160, 83, 0.12), rgba(255, 255, 255, 0.025)),
        rgba(12, 16, 24, 0.9);
}

.account-quick-card > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffe1a6;
    border: 1px solid rgba(211, 160, 83, 0.32);
    border-radius: 12px;
    background: rgba(211, 160, 83, 0.12);
    font-size: 1.2rem;
}

.account-quick-card strong {
    font-size: 1.04rem;
}

.account-quick-card small {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.45;
}

.account-card {
    padding: 22px;
}

.account-card-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.account-card-head > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--primary-light);
    border: 1px solid rgba(255, 107, 53, 0.24);
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.12);
    font-size: 1.25rem;
}

.account-card h2 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.account-info-list,
.account-form,
.account-action-box,
.account-orders {
    display: grid;
    gap: 12px;
}

.account-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-info-list div:last-child {
    border-bottom: 0;
}

.account-info-list span,
.account-form label span,
.ep-package-card span,
.account-orders small {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.account-info-list strong {
    color: #fff;
    text-align: right;
}

.account-form label {
    display: grid;
    gap: 7px;
}

.account-action-box {
    min-height: calc(100% - 64px);
    align-content: space-between;
    padding: 16px;
    border: 1px solid rgba(255, 107, 53, 0.18);
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.08);
}

.account-action-box strong {
    color: #fff;
}

.account-security-actions {
    display: grid;
    gap: 12px;
}

.account-security-actions form {
    margin: 0;
}

.account-security-button {
    width: 100%;
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 14px;
    text-align: left;
    color: #fff;
    border: 1px solid rgba(211, 160, 83, 0.22);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(9, 13, 20, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.account-security-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 203, 112, 0.42);
    background:
        linear-gradient(180deg, rgba(211, 160, 83, 0.13), rgba(255, 255, 255, 0.02)),
        rgba(12, 16, 24, 0.86);
}

.account-security-button > span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffe1a6;
    border: 1px solid rgba(211, 160, 83, 0.3);
    border-radius: 12px;
    background: rgba(211, 160, 83, 0.12);
}

.account-security-button strong,
.account-security-button small {
    min-width: 0;
}

.account-security-button small {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.35;
}

.account-change-page {
    min-height: 58vh;
}

.account-change-panel {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid rgba(211, 160, 83, 0.24);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(13, 17, 23, 0.9);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.account-change-panel h1 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
}

.account-change-form {
    margin-top: 18px;
}

.account-change-state {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 107, 107, 0.28);
    border-radius: 14px;
    background: rgba(255, 107, 107, 0.1);
}

.account-change-state i {
    color: #ffd0d0;
    font-size: 1.6rem;
}

.account-change-state strong {
    color: #fff;
}

.account-change-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.ep-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ep-package-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 107, 53, 0.18);
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.58);
}

.ep-package-card strong {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.ep-package-card small {
    color: #ffbf93;
}

.ep-package-card em {
    color: var(--primary-light);
    font-style: normal;
    font-weight: 900;
}

.account-orders {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.account-orders h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.account-orders div {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-orders div:last-child {
    border-bottom: 0;
}

.account-orders span,
.account-orders strong {
    color: #fff;
}

.support-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.support-create-form,
.support-ticket-area,
.support-thread,
.support-ticket-list {
    min-width: 0;
}

.support-ticket-area,
.support-ticket-list,
.support-thread,
.support-messages {
    display: grid;
    gap: 12px;
}

.support-ticket-list h3,
.support-thread-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.support-ticket-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.5);
}

.support-ticket-list a.active,
.support-ticket-list a:hover {
    border-color: rgba(255, 107, 53, 0.28);
    background: rgba(255, 107, 53, 0.09);
}

.support-ticket-list span {
    color: #fff;
    font-weight: 850;
}

.support-ticket-list small,
.support-thread-head span,
.support-messages span,
.support-empty {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.support-thread {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(7, 10, 15, 0.32);
}

.support-thread-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.support-status {
    align-self: flex-start;
    display: inline-flex;
    padding: 7px 10px;
    color: #d7e3f3;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    font-size: 0.76rem;
}

.support-status.is-active {
    color: #bff6d8;
    border-color: rgba(40, 199, 111, 0.34);
    background: rgba(40, 199, 111, 0.12);
}

.support-status.is-danger {
    color: #ffc9c9;
    border-color: rgba(255, 107, 107, 0.34);
    background: rgba(255, 107, 107, 0.12);
}

.support-messages > div {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.support-messages > div.is-admin {
    border-color: rgba(89, 178, 255, 0.22);
    background: rgba(89, 178, 255, 0.08);
}

.support-messages p {
    margin: 6px 0 0;
    color: #eef3f8;
}

.site-confirm-modal {
    color: #f3f4f8;
    border: 1px solid rgba(211, 160, 83, 0.25);
    background: #171b25;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.site-confirm-modal .modal-header,
.site-confirm-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.site-confirm-modal .modal-body {
    color: rgba(255, 255, 255, 0.72);
}

.discord-site-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    width: 292px;
    display: grid;
    gap: 10px;
    padding: 14px;
    color: #fff;
    border: 1px solid rgba(114, 137, 218, 0.28);
    border-radius: 14px;
    background: rgba(18, 23, 34, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
}

.discord-site-widget.theme2 {
    color: #172033;
    background: rgba(248, 250, 252, 0.96);
}

.discord-site-widget-head {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
}

.discord-site-widget-head > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #5865f2;
    color: #fff;
    font-size: 1.25rem;
}

.discord-site-widget-head strong,
.discord-site-widget-head small {
    display: block;
}

.discord-site-widget-head small {
    color: rgba(255, 255, 255, 0.62);
}

.discord-site-widget.theme2 .discord-site-widget-head small {
    color: rgba(23, 32, 51, 0.58);
}

.discord-site-widget iframe {
    width: 100%;
    border-radius: 10px;
    background: #5865f2;
}

.discord-site-widget > a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: #5865f2;
    font-weight: 850;
}

.recaptcha-box {
    min-width: 0;
    overflow-x: auto;
}

.market-shell {
    padding-top: 148px;
}

.market-hero,
.market-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
}

.market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid rgba(211, 160, 83, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(110deg, rgba(6, 8, 12, 0.86), rgba(26, 18, 11, 0.68)),
        url("../../images/nesne_market_kucuk.png") center / cover no-repeat;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.market-hero h1 {
    max-width: 760px;
    margin: 10px 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
}

.market-hero p {
    max-width: 680px;
    color: #d9c8ad;
}

.market-balance-card,
.market-item-card,
.market-wheel-panel,
.market-history,
.market-empty {
    border: 1px solid rgba(211, 160, 83, 0.22);
    border-radius: 14px;
    background: rgba(9, 11, 15, 0.82);
}

.market-balance-card {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 24px;
}

.market-action-result {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    gap: 12px;
    align-items: center;
    padding: 13px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(211, 160, 83, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(211, 160, 83, 0.15), rgba(255, 255, 255, 0.035)),
        rgba(7, 9, 13, 0.88);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.market-action-result::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #d3a053;
}

.market-action-result.is-success {
    border-color: rgba(116, 212, 160, 0.34);
    background:
        linear-gradient(135deg, rgba(116, 212, 160, 0.14), rgba(211, 160, 83, 0.06)),
        rgba(7, 13, 12, 0.88);
}

.market-action-result.is-success::before {
    background: #74d4a0;
}

.market-action-result.is-danger {
    border-color: rgba(255, 92, 117, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 92, 117, 0.14), rgba(211, 160, 83, 0.05)),
        rgba(15, 8, 10, 0.88);
}

.market-action-result.is-danger::before {
    background: #ff5c75;
}

.market-action-result-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(211, 160, 83, 0.22);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.26);
    color: #f3d48a;
    font-size: 1.2rem;
}

.market-action-result.is-success .market-action-result-icon {
    border-color: rgba(116, 212, 160, 0.26);
    color: #9fe8be;
}

.market-action-result.is-danger .market-action-result-icon {
    border-color: rgba(255, 92, 117, 0.26);
    color: #ffb3bf;
}

.market-action-result-body small,
.market-action-result-body strong {
    display: block;
}

.market-action-result-body small {
    margin-bottom: 3px;
    color: #f3d48a;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.market-action-result-body strong {
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.45;
}

.market-action-result button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #cdbfa9;
    transition: 0.18s ease;
}

.market-action-result button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.market-wheel-result {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(116, 212, 160, 0.34);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(116, 212, 160, 0.16), rgba(255, 255, 255, 0.035)),
        rgba(7, 13, 12, 0.78);
}

.market-wheel-result-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(116, 212, 160, 0.26);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
}

.market-wheel-result-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.market-wheel-result small,
.market-wheel-result strong,
.market-wheel-result em {
    display: block;
}

.market-wheel-result small {
    color: #9fe8be;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.market-wheel-result strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.market-wheel-result em {
    color: #cfead9;
    font-size: 0.84rem;
    font-style: normal;
}

.market-wheel-message {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 92, 117, 0.3);
    border-radius: 12px;
    background: rgba(255, 92, 117, 0.12);
    color: #ffd5dc;
}

.market-balance-card span,
.market-category-head span,
.market-item-card span {
    color: #d3a053;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.market-balance-card strong {
    color: #fff;
    font-size: 2rem;
}

.market-balance-card .market-wheel-result span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.market-balance-card .market-wheel-result strong {
    color: #fff;
    font-size: 1rem;
}

.market-balance-card .market-action-result span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.market-balance-card .market-action-result strong {
    color: #fff;
    font-size: 0.94rem;
}

.market-wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.market-wallet-grid div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(211, 160, 83, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.market-wallet-grid strong {
    display: block;
    margin-top: 3px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.market-category-block {
    margin-bottom: 34px;
    scroll-margin-top: 130px;
}

.market-category-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 0;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    border: 1px solid rgba(211, 160, 83, 0.22);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(211, 160, 83, 0.11), rgba(255, 255, 255, 0.02)),
        rgba(9, 11, 15, 0.72);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.market-category-head::-webkit-details-marker,
.market-category-subhead::-webkit-details-marker {
    display: none;
}

.market-category-head:hover,
.market-category-block[open] > .market-category-head {
    border-color: rgba(211, 160, 83, 0.48);
}

.market-category-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.market-category-head span i,
.market-category-subhead span i {
    transition: transform 0.2s ease;
}

.market-category-block[open] > .market-category-head span i,
.market-subcategory-block[open] > .market-category-subhead span i {
    transform: rotate(180deg);
}

.market-category-content {
    padding-top: 16px;
}

.market-category-head h3,
.market-wheel-panel h3 {
    margin: 0;
    color: #fff;
}

.market-category-head p {
    margin: 4px 0 0;
    color: #b6a78f;
}

.market-catalog-toolbar,
.market-subcategory-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.market-catalog-toolbar a,
.market-catalog-toolbar button,
.market-subcategory-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(211, 160, 83, 0.22);
    border-radius: 999px;
    background: rgba(9, 11, 15, 0.66);
    color: #ead5b6;
    text-decoration: none;
    font-size: 0.88rem;
    font: inherit;
    transition: 0.2s ease;
}

.market-catalog-toolbar button {
    cursor: pointer;
}

.market-catalog-toolbar a:hover,
.market-catalog-toolbar button:hover,
.market-catalog-toolbar button.is-active,
.market-subcategory-strip a:hover {
    transform: translateY(-2px);
    border-color: rgba(211, 160, 83, 0.58);
    color: #fff;
}

.market-catalog-toolbar button.is-active {
    background: linear-gradient(135deg, rgba(211, 160, 83, 0.28), rgba(9, 11, 15, 0.74));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.market-catalog-toolbar span,
.market-subcategory-strip span {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(211, 160, 83, 0.14);
    color: #f3d48a;
    text-align: center;
    font-size: 0.75rem;
}

.market-category-panels {
    margin-top: 22px;
}

.market-category-panel[hidden] {
    display: none;
}

.market-category-panel.is-active {
    animation: fadeInUp 0.24s ease both;
}

.market-subcategory-block {
    margin-top: 18px;
    scroll-margin-top: 130px;
}

.market-category-subhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin: 18px 0 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    border-radius: 12px;
    border-left: 3px solid rgba(211, 160, 83, 0.62);
    background: rgba(255, 255, 255, 0.025);
}

.market-category-subhead h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.market-category-subhead p {
    margin: 4px 0 0;
    color: #b6a78f;
    font-size: 0.88rem;
}

.market-category-subhead span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d3a053;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.market-item-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.market-item-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100%;
    overflow: hidden;
    transition: 0.22s ease;
}

.market-item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(211, 160, 83, 0.5);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.market-item-media {
    height: 146px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle, rgba(211, 160, 83, 0.18), rgba(255, 255, 255, 0.02));
}

.market-item-media img,
.market-prize-list img,
.market-wheel-disc img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.market-item-media i {
    color: #d3a053;
    font-size: 2.4rem;
}

.market-item-body {
    padding: 16px;
}

.market-item-body h3 {
    margin: 8px 0;
    color: #fff;
    font-size: 1.04rem;
}

.market-item-body p {
    margin: 0;
    color: #b6a78f;
    font-size: 0.9rem;
}

.market-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid rgba(211, 160, 83, 0.16);
}

.market-price-list {
    display: grid;
    gap: 7px;
}

.market-price-list span {
    display: grid;
    gap: 2px;
}

.market-item-footer small {
    color: #8e8171;
    text-decoration: line-through;
}

.market-item-footer strong {
    color: #f3d48a;
    font-size: 1.08rem;
}

.market-buy-actions {
    display: grid;
    gap: 7px;
    min-width: 112px;
}

.market-purchase-side {
    display: grid;
    gap: 8px;
    min-width: 128px;
}

.market-quantity-control {
    display: grid;
    grid-template-columns: 34px minmax(42px, 1fr) 34px;
    align-items: center;
    min-height: 36px;
    overflow: hidden;
    border: 1px solid rgba(211, 160, 83, 0.22);
    border-radius: 10px;
    background: rgba(9, 11, 15, 0.72);
}

.market-quantity-control button,
.market-quantity-control input {
    width: 100%;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
}

.market-quantity-control button {
    display: grid;
    place-items: center;
    color: #f3d48a;
    transition: 0.18s ease;
}

.market-quantity-control button:hover {
    background: rgba(211, 160, 83, 0.14);
}

.market-quantity-control input {
    border-inline: 1px solid rgba(211, 160, 83, 0.15);
    text-align: center;
    font-weight: 800;
    outline: 0;
}

.market-quantity-control input::-webkit-outer-spin-button,
.market-quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.market-quantity-control input[type="number"] {
    appearance: textfield;
}

.market-buy-actions .royal-primary-button {
    width: 100%;
    min-height: 38px;
    padding-inline: 11px;
    white-space: nowrap;
}

.market-confirm-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: grid !important;
    place-items: center;
    width: 100vw;
    height: 100dvh;
    padding: 18px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(5px);
}

.market-confirm-backdrop[hidden] {
    display: none !important;
}

.market-confirm-dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(211, 160, 83, 0.34);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(211, 160, 83, 0.13), rgba(255, 255, 255, 0.035)),
        rgba(7, 9, 13, 0.96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.market-confirm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #cdbfa9;
}

.market-confirm-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.market-confirm-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border: 1px solid rgba(211, 160, 83, 0.28);
    border-radius: 14px;
    background: rgba(211, 160, 83, 0.1);
    color: #f3d48a;
    font-size: 1.5rem;
}

.market-confirm-dialog small {
    display: block;
    color: #d3a053;
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.market-confirm-dialog h3 {
    margin: 6px 40px 10px 0;
    color: #fff;
    font-size: 1.35rem;
}

.market-confirm-dialog p {
    margin: 0 0 16px;
    color: #d9c8ad;
    line-height: 1.55;
}

.market-confirm-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.market-confirm-summary span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(211, 160, 83, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #a99c88;
    font-size: 0.84rem;
}

.market-confirm-summary strong {
    color: #fff;
    text-align: right;
}

.market-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.market-confirm-open {
    overflow: hidden;
}

.market-wheel-layout {
    display: grid;
    grid-template-columns: minmax(420px, 680px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.market-wheel {
    position: relative;
    min-height: calc(var(--wheel-size, 360px) + 64px);
    display: grid;
    place-items: center;
}

.market-wheel::before,
.market-wheel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.market-wheel::before {
    z-index: 0;
    width: calc(var(--wheel-size, 360px) + 50px);
    height: calc(var(--wheel-size, 360px) + 50px);
    border: 1px solid rgba(211, 160, 83, 0.18);
    background: radial-gradient(circle, rgba(211, 160, 83, 0.12), transparent 62%);
    filter: blur(0.2px);
}

.market-wheel::after {
    z-index: 2;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(211, 160, 83, 0.24);
    background:
        radial-gradient(circle, rgba(243, 212, 138, 0.26), rgba(0, 0, 0, 0.24) 62%),
        rgba(9, 11, 15, 0.92);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5), 0 0 28px rgba(211, 160, 83, 0.18);
}

.market-wheel-disc {
    width: var(--wheel-size, 360px);
    height: var(--wheel-size, 360px);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(211, 160, 83, 0.46);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2) 0 17%, transparent 18%),
        repeating-conic-gradient(from -22.5deg, rgba(211, 160, 83, 0.26) 0 45deg, rgba(104, 63, 25, 0.2) 45deg 90deg),
        rgba(7, 9, 13, 0.92);
    box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.42), 0 22px 60px rgba(0, 0, 0, 0.38), 0 0 0 10px rgba(211, 160, 83, 0.045);
    transform: rotate(0deg);
    will-change: transform;
}

.market-wheel-disc::before {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px dashed rgba(243, 212, 138, 0.2);
    border-radius: 50%;
}

.market-wheel-disc::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 94px;
    height: 94px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(211, 160, 83, 0.34);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, rgba(243, 212, 138, 0.28), transparent 45%),
        rgba(8, 10, 14, 0.9);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.55);
}

.market-wheel-disc.is-spinning {
    animation: market-wheel-spin 3.2s cubic-bezier(0.12, 0.72, 0.12, 1) forwards;
}

@keyframes market-wheel-spin {
    0% {
        transform: rotate(0deg);
    }
    72% {
        transform: rotate(calc(var(--wheel-spin-rotation, 2340deg) - 34deg));
    }
    86% {
        transform: rotate(calc(var(--wheel-spin-rotation, 2340deg) + 12deg));
    }
    100% {
        transform: rotate(var(--wheel-spin-rotation, 2340deg));
    }
}

.market-wheel-disc span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--wheel-token-size, 78px);
    height: var(--wheel-token-size, 78px);
    display: grid;
    place-items: center;
    margin: calc(var(--wheel-token-size, 78px) / -2);
    border-radius: 50%;
    z-index: 2;
    border: 1px solid rgba(243, 212, 138, 0.2);
    background: rgba(0, 0, 0, 0.36);
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.4);
}

.market-wheel-disc span {
    transform: rotate(var(--wheel-angle, 0deg)) translateY(calc(-1 * var(--wheel-ring-radius, var(--wheel-radius, 132px)))) rotate(calc(-1 * var(--wheel-angle, 0deg)));
}

.market-wheel-disc img {
    width: calc(var(--wheel-token-size, 78px) * 0.78);
    height: calc(var(--wheel-token-size, 78px) * 0.78);
}

.market-wheel-pointer {
    position: absolute;
    top: 4px;
    z-index: 3;
    color: #f3d48a;
    font-size: 2rem;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.7));
}

.market-wheel-panel {
    padding: 22px;
}

.market-prize-list,
.market-history {
    display: grid;
    gap: 10px;
}

.market-prize-list {
    margin: 16px 0;
}

.market-prize-list div,
.market-history div {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(211, 160, 83, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.market-prize-list img {
    width: 38px;
    height: 38px;
}

.market-prize-list i {
    color: #d3a053;
    font-size: 1.3rem;
}

.market-prize-list span,
.market-history strong {
    color: #fff;
}

.market-prize-list strong,
.market-history span {
    color: #d3a053;
}

.market-history {
    padding: 16px;
}

.market-history small {
    color: #b6a78f;
}

.market-empty {
    padding: 24px;
    color: #b6a78f;
}

.wiki-craft-popup-materials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.wiki-craft-popup-material {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.24);
    text-align: left;
}

.wiki-craft-popup-material > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
}

.wiki-craft-popup-material img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.wiki-craft-popup-material strong,
.wiki-craft-popup-material small {
    display: block;
}

.wiki-craft-popup-material strong {
    color: #fff;
    font-size: 0.85rem;
}

.wiki-craft-popup-material small {
    color: #f6c46b;
    font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .navbar-collapse {
        background: var(--card-bg);
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
    }

    .account-hero,
    .account-grid,
    .support-layout,
    .ep-package-grid {
        grid-template-columns: 1fr;
    }

    .account-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-hero,
    .market-wheel-layout {
        grid-template-columns: 1fr;
    }

    .market-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }

    .account-quick-grid {
        grid-template-columns: 1fr;
    }

    .discord-site-widget {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }

    .discord-site-widget iframe {
        height: 240px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 280px;
    }

    .account-orders div,
    .account-info-list div {
        grid-template-columns: 1fr;
        display: grid;
    }

    .account-info-list strong {
        text-align: left;
    }

    .market-item-grid {
        grid-template-columns: 1fr;
    }

    .market-wheel {
        min-height: auto;
    }

    .market-wheel-disc {
        width: min(100%, 340px);
        height: auto;
        min-height: 280px;
    }

    .market-wheel-disc span {
        transform: none !important;
        position: static;
        margin: 0;
    }

    .market-wheel-disc {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
        place-items: center;
        padding: 18px;
        gap: 10px;
        border-radius: 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255,107,53,0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255,107,53,0.4);
    }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

/* Royal web panel layout */
.royal-home {
    background: #080a0f;
    color: #eef3f8;
}

.royal-wallpaper-home {
    min-height: 100vh;
    background: #06080c;
}

.royal-wallpaper-home::before,
.royal-wallpaper-home::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.royal-wallpaper-home::before {
    z-index: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 176, 60, 0.24), transparent 26%),
        radial-gradient(circle at 84% 44%, rgba(173, 44, 27, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(4, 5, 8, 0.9), rgba(4, 5, 8, 0.58) 48%, rgba(4, 5, 8, 0.92)),
        linear-gradient(180deg, rgba(4, 5, 8, 0.25), rgba(4, 5, 8, 0.86) 74%, #06080c),
        url("../../images/alvis2-royal-hero.jpg") center 18% / cover no-repeat;
    filter: saturate(1.08) contrast(1.04);
}

.royal-wallpaper-home::after {
    z-index: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        radial-gradient(circle at 50% 72%, rgba(255, 115, 34, 0.13), transparent 34%);
    background-size: 100% 3px, 3px 100%, auto;
    mix-blend-mode: screen;
    opacity: 0.58;
}

.royal-wallpaper-home > * {
    position: relative;
    z-index: 1;
}

.royal-wallpaper-home .royal-header {
    background: rgba(6, 8, 12, 0.76);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body.intro-wallpaper-page .intro-hero {
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 169, 48, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(4, 5, 8, 0.96), rgba(4, 5, 8, 0.55) 48%, rgba(4, 5, 8, 0.88)),
        url("../../images/alvis2-royal-hero.jpg") center 18% / cover no-repeat;
}

body.intro-wallpaper-page .intro-hero video {
    opacity: 0.22;
    filter: saturate(0.9) contrast(1.18);
    mix-blend-mode: screen;
}

body.intro-wallpaper-page .intro-hero .overlay {
    background:
        radial-gradient(circle at 50% 48%, transparent 0 18%, rgba(0, 0, 0, 0.24) 48%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(6, 8, 12, 0.84));
}

body.intro-wallpaper-page .intro-logo {
    filter: drop-shadow(0 0 38px rgba(255, 161, 44, 0.55)) drop-shadow(0 28px 34px rgba(0, 0, 0, 0.62));
}

body.intro-wallpaper-page .intro-features {
    background:
        linear-gradient(180deg, rgba(6, 8, 12, 0.92), rgba(9, 13, 20, 0.86)),
        radial-gradient(circle at 50% 0, rgba(255, 132, 38, 0.14), transparent 34%);
}

body.intro-wallpaper-page .feature-card {
    border-radius: 8px;
    background: rgba(17, 23, 34, 0.8);
    backdrop-filter: blur(10px);
}

.royal-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 168, 83, 0.24);
    background: rgba(8, 10, 15, 0.88);
    backdrop-filter: blur(14px);
}

.royal-topline,
.royal-nav,
.royal-hero-inner,
.royal-quick-menu,
.royal-section,
.royal-cta-band {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.royal-topline {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #b7c0cf;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.royal-topline div,
.royal-nav-actions,
.royal-hero-actions,
.royal-account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.royal-topline a,
.royal-footer a {
    color: #fff;
    text-decoration: none;
}

.royal-topline i {
    color: #d4a853;
}

.royal-nav {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.royal-brand img {
    width: auto;
    height: 86px;
    display: block;
    margin: -18px 0;
}

.royal-menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 8px 10px;
}

.royal-nav-collapse {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.royal-nav-collapse.collapse:not(.show) {
    display: flex;
}

.royal-nav-collapse a {
    color: #dce4ef;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 800;
}

.royal-nav-collapse a:hover,
.royal-nav-collapse a.active {
    color: #fff;
    background: rgba(212, 168, 83, 0.14);
}

.royal-link-button,
.royal-primary-button,
.royal-download-button,
.royal-ghost-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.royal-link-button,
.royal-ghost-button {
    color: #e8edf6;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.royal-primary-button,
.royal-download-button {
    color: #111318;
    border: 1px solid #f0cb79;
    background: linear-gradient(180deg, #ffe29a, #c99335);
    box-shadow: 0 14px 26px rgba(212, 168, 83, 0.2);
}

.royal-hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 154px 0 70px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 10, 15, 0.96), rgba(8, 10, 15, 0.72) 54%, rgba(8, 10, 15, 0.92)),
        var(--royal-hero-image) center / cover no-repeat;
}

.royal-wallpaper-home .royal-hero {
    background:
        linear-gradient(90deg, rgba(4, 5, 8, 0.98), rgba(4, 5, 8, 0.68) 45%, rgba(4, 5, 8, 0.9)),
        radial-gradient(circle at 56% 38%, rgba(255, 172, 52, 0.22), transparent 25%),
        url("../../images/alvis2-royal-hero.jpg") center 18% / cover no-repeat;
}

.royal-wallpaper-home .royal-hero::before,
.royal-wallpaper-home .royal-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.royal-wallpaper-home .royal-hero::before {
    inset: auto 0 0;
    height: 42%;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 111, 32, 0.22), transparent 58%),
        linear-gradient(180deg, transparent, #080a0f 88%);
    z-index: 0;
}

.royal-wallpaper-home .royal-hero::after {
    right: max(18px, calc((100vw - 1180px) / 2 - 36px));
    bottom: 28px;
    width: min(34vw, 430px);
    height: min(58vw, 620px);
    background: url("../../images/ork_reisi.png") right bottom / contain no-repeat;
    opacity: 0.22;
    filter: saturate(0.86) contrast(1.1) drop-shadow(0 34px 42px rgba(0, 0, 0, 0.72));
    z-index: 0;
}

.royal-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.royal-kicker,
.royal-panel-label,
.royal-section-head span,
.royal-cta-band span {
    display: inline-flex;
    color: #d4a853;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.royal-hero-logo {
    width: min(360px, 72vw);
    display: block;
    margin: 18px 0 8px;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.42));
}

.royal-hero h1 {
    max-width: 720px;
    color: #fff;
    font-size: 3.35rem;
    line-height: 1.05;
    font-weight: 800;
}

.royal-hero p {
    max-width: 620px;
    color: #c5cedb;
    font-size: 1.05rem;
}

.royal-account-panel {
    padding: 24px;
    border: 1px solid rgba(212, 168, 83, 0.28);
    border-radius: 8px;
    background: rgba(13, 16, 24, 0.92);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
}

.royal-account-panel h2 {
    color: #fff;
    font-size: 1.35rem;
    margin: 8px 0 8px;
}

.royal-account-panel label {
    display: block;
    color: #aeb8c8;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 12px 0 6px;
}

.royal-account-panel input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #111722;
    color: #fff;
    padding: 10px 12px;
}

.royal-account-panel button {
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    color: #111318;
    background: linear-gradient(180deg, #ffe29a, #c99335);
    font-weight: 900;
}

.royal-account-actions {
    justify-content: space-between;
    margin-top: 16px;
}

.royal-account-actions a {
    color: #f1d187;
    text-decoration: none;
    font-weight: 800;
}

.royal-quick-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -38px;
    position: relative;
    z-index: 5;
}

.royal-quick-menu a,
.royal-news-item,
.royal-rank-panel,
.royal-feature-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: #111722;
}

.royal-quick-menu a {
    min-height: 94px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-content: center;
    gap: 2px 12px;
    padding: 18px;
    color: #fff;
    text-decoration: none;
}

.royal-quick-menu i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #111318;
    background: #d4a853;
}

.royal-quick-menu span {
    color: #9ca8b8;
    font-size: 0.85rem;
}

.royal-section {
    padding: 78px 0 0;
}

.royal-section-head {
    margin-bottom: 24px;
}

.royal-section-head h2,
.royal-cta-band h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 2rem;
}

.royal-grid-2 {
    display: grid;
    /* Sağ tarafı 380px yaparak haberlere daha fazla ama kontrol edilebilir bir alan bıraktık */
    grid-template-columns: minmax(0, 1fr) 380px; 
    gap: 24px;
    align-items: start;
}

.royal-news-list {
    display: grid;
    gap: 12px;
}
.royal-feature-grid {
    display: grid;
    gap: 14px;
}

.royal-news-item {
    padding: 16px;
    /* Şeffaflığı kaldırdım, orijinal rengini korur */
    background: #1a1e28; 
    border-radius: 6px;
    border: 1px solid #2a2f3a;
}

.royal-news-item span,
.royal-news-item time {
    color: #d4a853;
    font-size: 0.75rem;
    font-weight: 900;
}

.royal-news-item h3 {
    margin: 6px 0;
    color: #fff;
    font-size: 1.15rem;
}

.royal-news-item p {
    color: #aeb8c8;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.royal-rank-panel {
    padding: 18px;
    /* Şeffaflığı kaldırdım, orijinal rengini korur */
    background: #1a1e28;
    border-radius: 6px;
    border: 1px solid #2a2f3a;
}

.royal-rank-tabs {
    gap: 8px;
    margin-bottom: 14px;
}

.royal-rank-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #dce4ef;
    padding: 8px 12px;
    font-weight: 900;
}

.royal-rank-tabs button.active {
    color: #111318;
    background: #d4a853;
}

.royal-rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.royal-rank-row strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #111318;
    background: #d4a853;
}

.royal-rank-row span {
    color: #fff;
    font-weight: 900;
}

.royal-rank-row small,
.royal-rank-row em,
.royal-empty-line {
    display: block;
    color: #9ca8b8;
    font-style: normal;
    font-size: 0.82rem;
}

.royal-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.royal-feature-card {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.royal-feature-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.royal-feature-card div {
    padding: 16px;
}

.royal-feature-card h3 {
    color: #fff;
    font-size: 1.05rem;
}

.royal-feature-card p {
    color: #aeb8c8;
    margin: 0;
    font-size: 0.9rem;
}

.royal-cta-band {
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 78px;
    padding: 26px;
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(212, 168, 83, 0.14), rgba(66, 87, 214, 0.1)),
        #101620;
}

.royal-footer {
    position: relative;
    width: 100%;
    max-width: none;
    display: grid;
    place-items: center;
    gap: 12px;
    margin: 48px 0 0;
    min-height: 118px;
    padding: 27px clamp(158px, 22vw, 286px) 36px;
    color: #fff !important;
    text-align: center;
    background: #020202;
    border-top: 4px solid rgba(130, 130, 130, 0.88);
    border-bottom: 4px solid rgba(130, 130, 130, 0.88);
    overflow: hidden;
}

.royal-footer * {
    color: #fff !important;
}

.royal-footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.royal-footer p {
    margin: 0;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.royal-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.royal-footer-social a {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.22rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.royal-footer-social a:hover {
    color: #d4a853 !important;
    transform: translateY(-1px);
}

.royal-footer-signature {
    position: absolute;
    z-index: 1;
    bottom: 8px;
    display: block;
    height: auto;
    pointer-events: none;
    user-select: none;
    opacity: 1;
}

.royal-footer-signature-left {
    left: max(70px, calc((100vw - 1180px) / 2 + 58px));
    width: clamp(190px, 18vw, 250px);
}

.royal-footer-signature-right {
    right: max(78px, calc((100vw - 1180px) / 2 + 66px));
    width: clamp(136px, 13vw, 178px);
}

.auth-shell,
.download-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 152px 0 70px;
}

.auth-hero-card {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

.auth-copy,
.auth-panel,
.download-status-card,
.download-info-card,
.download-pack-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
        #111722;
}

.auth-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    background:
        linear-gradient(180deg, rgba(8, 10, 15, 0.2), rgba(8, 10, 15, 0.9)),
        url("../../images/nesne_market.png") center / cover no-repeat;
    overflow: hidden;
}

.auth-register-card .auth-copy {
    background:
        linear-gradient(180deg, rgba(8, 10, 15, 0.2), rgba(8, 10, 15, 0.92)),
        url("../../images/baslang覺c.png") center / cover no-repeat;
}

.auth-copy h1 {
    max-width: 520px;
    margin: 12px 0;
    color: #fff;
    font-size: 2.65rem;
    line-height: 1.05;
    font-weight: 900;
}

.auth-copy p {
    max-width: 560px;
    color: #c5cedb;
    margin-bottom: 22px;
}

.auth-benefits {
    display: grid;
    gap: 10px;
}

.auth-benefits div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 850;
}

.auth-benefits i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #111318;
    background: #d4a853;
}

.auth-panel {
    padding: 28px;
}

.auth-panel-head {
    margin-bottom: 18px;
}

.auth-panel-head span {
    color: #d4a853;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-panel-head h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 1.55rem;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.auth-wide {
    grid-column: 1 / -1;
}

.auth-form label,
.auth-check {
    color: #c5cedb;
    font-size: 0.82rem;
    font-weight: 850;
}

.auth-input {
    min-height: 44px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #0d131d;
}

.auth-input i {
    color: #d4a853;
    text-align: center;
}

.auth-input input,
.auth-input select {
    width: 100%;
    min-height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 12px 0 0;
}

.auth-input select option {
    color: #111318;
}

.auth-check {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-check a,
.auth-switch a {
    color: #f1d187;
    font-weight: 900;
}

.auth-submit {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    color: #111318;
    background: linear-gradient(180deg, #ffe29a, #c99335);
    font-weight: 950;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #aeb8c8;
}

.auth-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-hero {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: end;
    padding: 34px;
    border: 1px solid rgba(212, 168, 83, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(8, 10, 15, 0.94), rgba(8, 10, 15, 0.6)),
        url("../../images/indir_kucuk_arka.png") center / cover no-repeat;
}

.download-hero h1 {
    max-width: 680px;
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.05;
    font-weight: 900;
}

.download-hero p {
    max-width: 620px;
    color: #c5cedb;
}

.download-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.download-status-card {
    padding: 22px;
}

.download-status-card span {
    color: #d4a853;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.download-status-card strong {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    margin: 8px 0;
}

.download-status-card p {
    color: #aeb8c8;
    margin: 0;
}

.download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin-top: 34px;
}

.download-packs {
    display: grid;
    gap: 14px;
}

.download-pack-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
}

.download-pack-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #111318;
    background: #d4a853;
    font-size: 1.4rem;
}

.download-pack-card h3,
.download-info-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.12rem;
}

.download-pack-card p {
    color: #aeb8c8;
    margin: 0 0 8px;
}

.download-pack-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #c5cedb;
    font-size: 0.84rem;
    font-weight: 800;
}

.download-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.download-info-card {
    padding: 18px;
}

.download-info-card ol {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #c5cedb;
}

.download-info-card li + li {
    margin-top: 8px;
}

.download-requirement {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-requirement strong {
    color: #d4a853;
}

.download-requirement span {
    color: #c5cedb;
    font-size: 0.88rem;
}

@media (max-width: 1080px) {
    .royal-nav {
        grid-template-columns: auto auto;
    }

    .royal-menu-toggle {
        display: inline-grid;
        justify-self: end;
    }

    .royal-nav-collapse,
    .royal-nav-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .royal-nav-collapse.collapse:not(.show) {
        display: none;
    }

    .royal-nav-collapse.show {
        display: flex;
    }

    .royal-hero-inner,
    .royal-grid-2,
    .royal-feature-grid,
    .auth-hero-card,
    .download-hero,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .royal-quick-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .royal-topline,
    .royal-cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .royal-hero {
        min-height: 720px;
        padding-top: 170px;
    }

    .royal-hero h1 {
        font-size: 2.3rem;
    }

    .auth-copy h1,
    .download-hero h1 {
        font-size: 2.15rem;
    }

    .royal-quick-menu {
        grid-template-columns: 1fr;
    }

    .royal-footer {
        min-height: 146px;
        padding: 27px 16px 68px;
    }

    .royal-footer p {
        font-size: 0.92rem;
    }

    .royal-footer-signature-left {
        left: 24px;
        width: min(40vw, 150px);
    }

    .royal-footer-signature-right {
        right: 24px;
        width: min(32vw, 118px);
    }

    .auth-form-grid,
    .download-pack-card {
        grid-template-columns: 1fr;
    }

    .download-pack-icon {
        width: 48px;
        height: 48px;
    }
}
.royal-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.royal-event-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
        rgba(10,12,18,.92);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 24px;
    transition: .25s ease;
    backdrop-filter: blur(10px);
}

.royal-event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,106,0,.45);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.royal-event-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.royal-event-badge {
    background: linear-gradient(135deg, #ff6a00, #ff9248);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
}

.royal-event-date {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.royal-event-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: #fff;
}

.royal-event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffb067;
    font-weight: 600;
    margin-bottom: 14px;
}

.royal-event-reward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,106,0,.12);
    border: 1px solid rgba(255,106,0,.25);
    color: #ffb067;
    padding: 9px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.royal-event-card p {
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin: 0;
}
.royal-calendar-board {
    display: grid;
    gap: 18px;
}

.royal-calendar-event {
    display: grid;
    grid-template-columns: 85px 3px 1fr;
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(20, 18, 24, .96), rgba(8, 10, 16, .96));
    border: 1px solid rgba(255, 174, 88, .16);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    transition: .25s ease;
}

.royal-calendar-event:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 0, .55);
    box-shadow: 0 25px 65px rgba(0,0,0,.38);
}

.royal-calendar-datebox {
    border-radius: 22px;
    background: linear-gradient(180deg, #ff7a1a, #9b2d00);
    color: #fff;
    display: grid;
    place-items: center;
    padding: 10px 6px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.royal-calendar-datebox span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.royal-calendar-datebox strong {
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    font-family: Cinzel, serif;
}

.royal-calendar-datebox small {
    font-size: 10px;
    opacity: .9;
}

.royal-calendar-line {
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff7a1a, transparent);
}

.royal-calendar-info {
    padding: 10px 8px 10px 0;
}

.royal-calendar-info-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.royal-calendar-info h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.royal-calendar-hour {
    color: #ffc27a;
    background: rgba(255, 122, 26, .12);
    border: 1px solid rgba(255, 122, 26, .25);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.royal-calendar-prize {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffcf8a;
    background: rgba(255, 196, 93, .10);
    border: 1px solid rgba(255, 196, 93, .22);
    border-radius: 14px;
    padding: 6px 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.royal-calendar-info p {
    color: rgba(255,255,255,.72);
    line-height: 1.5;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    .royal-calendar-event {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .royal-calendar-line {
        display: none;
    }

    .royal-calendar-info {
        padding: 0;
    }

    .royal-calendar-info-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
.royal-events-list {
    max-width: 980px;
    margin: 0 auto;
}

.royal-event-news-item time {
    display: flex;
    align-items: center;
    gap: 7px;
}

.royal-event-prize {
    color: #ffb067 !important;
    font-weight: 700;
    margin-bottom: 10px !important;
}

.royal-event-prize i {
    margin-right: 5px;
}
.discord-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: min(370px, calc(100vw - 32px));
    z-index: 9999;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.45);
    animation: discordSlide .5s ease;
}

.discord-banner-art {
    display: block;
    color: inherit;
    text-decoration: none;
}

.discord-banner-art img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes discordSlide {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.discord-banner-content {
    padding: 22px;
}

.discord-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.discord-icon {
    min-width: 62px;
    width: 62px;
    height: 62px;
    border-radius: 18px;

    background: rgba(255,255,255,.15);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 30px;
}

.discord-label {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.discord-text h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 8px;
    font-weight: 800;
}

.discord-text p {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    background: #fff;
    color: #5865F2;

    padding: 12px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 700;

    transition: .2s;
}

.discord-btn:hover {
    background: #f1f3ff;
    transform: translateY(-2px);
}

.discord-right {
    display: none;
}

@media(max-width: 768px) {
    .discord-banner {
        left: 10px;
        right: auto;
        bottom: 10px;
        width: min(320px, calc(100vw - 20px));
    }
}
.discord-banner {
    left: 15px;
    bottom: 15px;
}

.discord-banner-content {
    padding: 16px;
}

.discord-left {
    gap: 12px;
}

.discord-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 14px;
}

.discord-label {
    font-size: 10px;
    margin-bottom: 3px;
}

.discord-text h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.discord-text p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.discord-btn {
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
}

/* Structural theme shell: used only when a non-default theme is active. */
.theme-site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: 104px;
    background: rgba(6, 8, 12, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.theme-site-frame {
    width: min(1200px, calc(100% - 28px));
    min-height: 104px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto 86px;
    align-items: center;
    gap: 14px;
}

.theme-site-logo {
    display: grid;
    place-items: center;
    min-height: 86px;
}

.theme-site-logo img {
    max-width: 148px;
    max-height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.58));
}

.theme-site-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.theme-site-menu.collapse:not(.show) {
    display: flex;
}

.theme-site-menu a,
.theme-site-soft,
.theme-site-cta {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    color: #edf2f8;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 900;
}

.theme-site-menu a:hover,
.theme-site-menu a.active,
.theme-site-soft:hover,
.theme-site-soft.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.theme-site-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-site-soft {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.04);
}

.theme-site-cta {
    color: #15110b;
    background: linear-gradient(180deg, #ffd98a, #bd7c2d);
}

.theme-site-online {
    min-height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
}

.theme-site-online span {
    color: #9faabc;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-site-online strong {
    color: #fff;
    line-height: 1;
}

.theme-site-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.theme-home-page {
    min-height: 100vh;
    background: #05070a;
    color: #eef3f7;
}

.theme-home-shell {
    overflow: hidden;
}

.theme-home-hero {
    min-height: 780px;
    padding: 150px 0 54px;
    position: relative;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(5, 7, 10, 0.96), rgba(5, 7, 10, 0.58), rgba(5, 7, 10, 0.94)),
        url("../../images/alvis2-royal-hero.jpg") center top / cover no-repeat;
}

.theme-home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, #05070a 82%);
    pointer-events: none;
}

.theme-home-stage {
    width: min(1200px, calc(100% - 28px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 270px;
    align-items: end;
    gap: 20px;
}

.theme-home-login,
.theme-home-board,
.theme-home-news,
.theme-home-rankings,
.theme-home-events,
.theme-home-shortcuts a,
.theme-home-feature-rail a {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(12, 15, 20, 0.88);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

.theme-home-login,
.theme-home-board {
    padding: 18px;
}

.theme-home-login span,
.theme-home-board span,
.theme-home-kicker,
.theme-home-section-head span {
    color: #f0bd62;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-home-login h2,
.theme-home-board strong,
.theme-home-center h1,
.theme-home-section-head h2 {
    color: #fff;
    font-family: Cinzel, serif;
    font-weight: 800;
}

.theme-home-login h2 {
    margin: 7px 0 10px;
    font-size: 1.24rem;
}

.theme-home-login p,
.theme-home-board p {
    color: #b8c2cf;
    font-size: 0.9rem;
}

.theme-home-login form {
    display: grid;
    gap: 9px;
}

.theme-home-login input {
    width: 100%;
    min-height: 39px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    padding: 8px 10px;
}

.theme-home-login button,
.theme-home-login a,
.theme-home-board a,
.theme-home-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    border: 0;
    border-radius: 4px;
    color: #14100b;
    background: linear-gradient(180deg, #ffe09b, #b9782b);
    text-decoration: none;
    font-weight: 950;
}

.theme-home-login > a + a {
    margin-top: 9px;
}

.theme-home-center {
    text-align: center;
    padding: 0 10px 28px;
}

.theme-home-logo {
    width: min(360px, 72vw);
    max-height: 130px;
    object-fit: contain;
    display: block;
    margin: 14px auto 10px;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.64));
}

.theme-home-center h1 {
    max-width: 720px;
    margin: 0 auto 10px;
    font-size: clamp(2.15rem, 4vw, 4rem);
    line-height: 1.04;
}

.theme-home-center p {
    max-width: 640px;
    margin: 0 auto;
    color: #c2cad5;
    font-size: 1.03rem;
}

.theme-home-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.theme-home-actions a + a {
    color: #f3f6fb;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.theme-home-stat-strip {
    width: min(560px, 100%);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.34);
}

.theme-home-stat-strip div {
    padding: 12px;
    display: grid;
    gap: 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-home-stat-strip div:last-child {
    border-right: 0;
}

.theme-home-stat-strip span {
    color: #9ea9b7;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-home-stat-strip strong {
    color: #fff;
    font-size: 1.2rem;
}

.theme-home-board strong {
    display: block;
    margin: 8px 0 8px;
    font-size: 2rem;
}

.theme-home-shortcuts,
.theme-home-content,
.theme-home-feature-rail,
.theme-home-events {
    width: min(1200px, calc(100% - 28px));
    margin: 0 auto;
}

.theme-home-shortcuts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.theme-home-shortcuts a {
    min-height: 102px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.theme-home-shortcuts i {
    color: #f0bd62;
    font-size: 1.5rem;
}

.theme-home-shortcuts span {
    color: #9da8b5;
    font-size: 0.8rem;
}

.theme-home-content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    gap: 22px;
    padding-top: 70px;
}

.theme-home-news,
.theme-home-rankings,
.theme-home-events {
    padding: 22px;
}

.theme-home-section-head {
    margin-bottom: 18px;
}

.theme-home-section-head h2 {
    margin: 5px 0 0;
    font-size: 1.7rem;
}

.theme-home-news article,
.theme-home-events article {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-home-news article span,
.theme-home-news time,
.theme-home-events time,
.theme-home-events span {
    color: #f0bd62;
    font-size: 0.76rem;
    font-weight: 900;
}

.theme-home-news h3,
.theme-home-events strong {
    display: block;
    margin: 7px 0;
    color: #fff;
    font-size: 1.03rem;
}

.theme-home-news p {
    color: #aeb8c6;
    margin: 0 0 4px;
}

.theme-rank-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.theme-rank-list h3 {
    color: #fff;
    font-size: 1.04rem;
    margin-bottom: 10px;
}

.theme-rank-list > div {
    min-height: 43px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-rank-list strong {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #17120c;
    background: #f0bd62;
}

.theme-rank-list span {
    color: #fff;
    font-weight: 900;
}

.theme-rank-list small,
.theme-home-empty {
    display: block;
    color: #9ea9b7;
    font-size: 0.78rem;
    font-weight: 700;
}

.theme-home-feature-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding-top: 22px;
}

.theme-home-feature-rail a {
    min-height: 260px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.theme-home-feature-rail img {
    width: 100%;
    height: 138px;
    object-fit: cover;
    display: block;
}

.theme-home-feature-rail strong,
.theme-home-feature-rail span {
    display: block;
    padding: 0 15px;
}

.theme-home-feature-rail strong {
    margin-top: 14px;
    font-size: 1.02rem;
}

.theme-home-feature-rail span {
    margin-top: 7px;
    color: #aeb8c6;
    font-size: 0.86rem;
}

.theme-home-events {
    margin-top: 22px;
}

.theme-home-events > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.theme-site-footer {
    min-height: 124px;
    width: 100%;
    margin-top: 70px;
    padding: 30px max(18px, calc((100vw - 1200px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
    background: #05070a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-site-footer strong {
    display: block;
    font-family: Cinzel, serif;
    font-size: 1.4rem;
}

.theme-site-footer p {
    margin: 4px 0 0;
    color: #aeb8c6;
}

.theme-site-footer nav {
    display: flex;
    gap: 12px;
}

.theme-site-footer a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

@media (max-width: 1120px) {
    .theme-site-frame {
        grid-template-columns: auto 42px 1fr auto;
    }

    .theme-site-toggle {
        display: grid;
        place-items: center;
    }

    .theme-site-menu,
    .theme-site-menu.collapse:not(.show) {
        display: none;
    }

    .theme-site-menu.show {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-bottom: 12px;
    }

    .theme-site-online {
        display: none;
    }

    .theme-home-stage,
    .theme-home-content {
        grid-template-columns: 1fr;
    }

    .theme-home-login,
    .theme-home-board {
        width: min(720px, 100%);
        justify-self: center;
    }

    .theme-home-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .theme-home-feature-rail,
    .theme-home-events > div:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .theme-site-frame {
        grid-template-columns: auto 42px;
        justify-content: space-between;
    }

    .theme-site-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .theme-home-hero {
        padding-top: 190px;
    }

    .theme-home-shortcuts,
    .theme-rank-columns,
    .theme-home-feature-rail,
    .theme-home-events > div:last-child,
    .theme-home-stat-strip {
        grid-template-columns: 1fr;
    }

    .theme-site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.theme-structural-page:not(.theme-home-page) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 260px),
        radial-gradient(circle at 50% 0, rgba(240, 189, 98, 0.1), transparent 38%),
        #05070a;
}

.theme-structural-page:not(.theme-home-page)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 7, 10, 0.98), rgba(5, 7, 10, 0.68), rgba(5, 7, 10, 0.98)),
        url("../../images/alvis2-royal-hero.jpg") center top / cover no-repeat;
    opacity: 0.34;
    pointer-events: none;
}

.theme-structural-page:not(.theme-home-page) .section-dark,
.theme-structural-page:not(.theme-home-page) .account-panel-shell {
    background: transparent;
}

.theme-structural-page:not(.theme-home-page) .section.section-dark {
    padding-top: 164px !important;
    min-height: 86vh;
}

.theme-structural-page .auth-shell,
.theme-structural-page .download-shell,
.theme-structural-page .market-shell,
.theme-structural-page .rankings-shell,
.theme-structural-page .account-panel-shell > .container,
.theme-structural-page .account-change-page > .container,
.theme-structural-page .community-page > .container,
.theme-structural-page .section.section-dark > .container {
    width: min(1200px, calc(100% - 28px));
    max-width: 1200px;
}

.theme-structural-page .auth-shell,
.theme-structural-page .download-shell,
.theme-structural-page .market-shell,
.theme-structural-page .rankings-shell {
    padding-top: 164px;
}

.theme-structural-page .auth-hero-card,
.theme-structural-page .download-hero,
.theme-structural-page .market-hero,
.theme-structural-page .rankings-hero,
.theme-structural-page .account-hero,
.theme-structural-page .community-hero {
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(6, 8, 12, 0.94), rgba(6, 8, 12, 0.56)),
        url("../../images/alvis2-royal-hero.jpg") center / cover no-repeat;
    box-shadow: 0 26px 78px rgba(0, 0, 0, 0.38);
}

.theme-structural-page .auth-hero-card {
    grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
}

.theme-structural-page .auth-copy {
    min-height: 520px;
    order: 2;
}

.theme-structural-page .auth-panel {
    order: 1;
    align-self: center;
}

.theme-structural-page .download-hero,
.theme-structural-page .rankings-hero,
.theme-structural-page .market-hero,
.theme-structural-page .community-hero,
.theme-structural-page .account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    align-items: end;
    gap: 26px;
    padding: 30px;
}

.theme-structural-page .download-grid,
.theme-structural-page .support-layout,
.theme-structural-page .account-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
}

.theme-structural-page .download-packs,
.theme-structural-page .support-ticket-area {
    order: 2;
}

.theme-structural-page .download-side,
.theme-structural-page .support-create-form {
    order: 1;
}

.theme-structural-page .market-section,
.theme-structural-page .account-card,
.theme-structural-page .download-status-card,
.theme-structural-page .download-info-card,
.theme-structural-page .download-pack-card,
.theme-structural-page .ranking-table-card,
.theme-structural-page .rankings-hero-card,
.theme-structural-page .community-panel,
.theme-structural-page .community-discord-banner,
.theme-structural-page .market-item-card,
.theme-structural-page .market-balance-card,
.theme-structural-page .market-wheel-panel,
.theme-structural-page .market-history,
.theme-structural-page .ep-package-card,
.theme-structural-page .card,
.theme-structural-page .card-game,
.theme-structural-page .gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(12, 15, 20, 0.9) !important;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.3);
}

.theme-structural-page .download-pack-card,
.theme-structural-page .ep-package-grid,
.theme-structural-page .rankings-stats,
.theme-structural-page .community-streamer-grid,
.theme-structural-page .row {
    gap: 16px;
}

.theme-structural-page .download-pack-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.theme-structural-page .download-pack-icon,
.theme-structural-page .auth-benefits i,
.theme-structural-page .royal-rank-row strong,
.theme-structural-page .rankings-stat,
.theme-structural-page .account-quick-card i {
    border-radius: 4px;
}

.theme-structural-page .market-layout,
.theme-structural-page .market-catalog-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 18px;
}

.theme-structural-page .market-category-tabs,
.theme-structural-page .market-category-list {
    align-content: start;
}

.theme-structural-page .ranking-tabs {
    width: 100%;
    justify-content: center;
    border-radius: 6px;
}

.theme-structural-page .ranking-table-card table {
    margin: 0;
}

.theme-structural-page .community-page {
    padding-top: 164px !important;
}

.theme-structural-page .community-hero {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.theme-structural-page .community-panel {
    margin-top: 22px;
}

.theme-structural-page .section.section-dark:not(.account-panel-shell):not(.community-page) .section-title,
.theme-structural-page .section.section-dark:not(.account-panel-shell):not(.community-page) h1 {
    text-align: left;
}

.theme-structural-page .section.section-dark:not(.account-panel-shell):not(.community-page) > .container {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        rgba(12, 15, 20, 0.88);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

@media (max-width: 1080px) {
    .theme-structural-page .auth-hero-card,
    .theme-structural-page .download-hero,
    .theme-structural-page .rankings-hero,
    .theme-structural-page .market-hero,
    .theme-structural-page .community-hero,
    .theme-structural-page .account-hero,
    .theme-structural-page .download-grid,
    .theme-structural-page .support-layout,
    .theme-structural-page .account-grid,
    .theme-structural-page .market-layout,
    .theme-structural-page .market-catalog-layout {
        grid-template-columns: 1fr;
    }

    .theme-structural-page .auth-copy,
    .theme-structural-page .auth-panel,
    .theme-structural-page .download-packs,
    .theme-structural-page .download-side,
    .theme-structural-page .support-ticket-area,
    .theme-structural-page .support-create-form {
        order: initial;
    }
}

/* Full structural theme templates. Wiki and tanitim intentionally keep the royal layout. */
.theme-template-nav {
    position: relative;
    z-index: 60;
    width: 100%;
    color: #fff;
}

.template-nav-frame {
    width: min(1220px, calc(100% - 28px));
    min-height: 86px;
    margin: 0 auto;
    display: grid;
    align-items: center;
    gap: 14px;
}

.template-nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 70px;
    text-decoration: none;
}

.template-nav-logo img {
    max-width: 150px;
    max-height: 72px;
    object-fit: contain;
}

.template-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-nav-menu a,
.template-nav-actions a,
.template-nav-top a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 850;
    white-space: nowrap;
}

.template-nav-menu a.active,
.template-nav-menu a:hover,
.template-nav-actions a:hover,
.template-nav-top a:hover {
    color: #fff;
}

.template-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.template-nav-top {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 850;
}

.template-nav-online {
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 5px 12px;
    text-align: center;
}

.template-nav-online span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.template-nav-online strong {
    color: #fff;
    font-size: 1rem;
}

.template-nav-mobile {
    display: none;
}

.theme-template-nav-electra {
    background:
        linear-gradient(180deg, rgba(25, 5, 6, 0.98), rgba(5, 1, 2, 0.93)),
        url("../../images/nesne_market.png") center 22% / cover no-repeat;
    border-bottom: 2px solid rgba(255, 72, 58, 0.36);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

.theme-template-nav-electra .template-nav-frame {
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    min-height: 112px;
}

.theme-template-nav-electra .template-nav-logo {
    justify-self: center;
    transform: translateY(10px);
}

.theme-template-nav-electra .template-nav-menu a,
.theme-template-nav-electra .template-nav-actions a {
    border: 1px solid rgba(255, 95, 74, 0.18);
    background: linear-gradient(180deg, rgba(255, 78, 58, 0.14), rgba(0, 0, 0, 0.28));
}

.theme-template-nav-electra .template-nav-menu a.active,
.theme-template-nav-electra .template-nav-menu a:hover,
.theme-template-nav-electra .theme-site-cta {
    border-color: rgba(255, 118, 84, 0.46);
    background: linear-gradient(180deg, #ff684d, #9d1721);
}

.theme-template-nav-tornado {
    position: sticky;
    top: 0;
    background:
        linear-gradient(90deg, rgba(2, 7, 12, 0.98), rgba(8, 30, 47, 0.95), rgba(2, 7, 12, 0.98));
    border-bottom: 1px solid rgba(100, 215, 255, 0.34);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.theme-template-nav-tornado .template-nav-frame {
    grid-template-columns: 150px minmax(0, 1fr) 92px auto;
}

.theme-template-nav-tornado .template-nav-menu {
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(100, 215, 255, 0.14);
    background: rgba(0, 0, 0, 0.24);
}

.theme-template-nav-tornado .template-nav-menu a.active,
.theme-template-nav-tornado .template-nav-menu a:hover {
    background: rgba(100, 215, 255, 0.18);
}

.theme-template-nav-tornado .theme-site-cta {
    color: #061018;
    background: linear-gradient(180deg, #d6faff, #64d7ff 52%, #1a6d9d);
}

.theme-template-nav-judy {
    padding-top: 12px;
    background:
        linear-gradient(180deg, rgba(37, 20, 11, 0.98), rgba(12, 7, 4, 0.92)),
        url("../../images/baslang覺c.png") center 18% / cover no-repeat;
    border-bottom: 3px solid rgba(150, 90, 40, 0.62);
}

.theme-template-nav-judy .template-nav-frame {
    grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr) auto;
}

.theme-template-nav-judy .template-nav-left {
    justify-content: flex-end;
}

.theme-template-nav-judy .template-nav-menu a,
.theme-template-nav-judy .template-nav-actions a {
    border-radius: 999px;
    border: 1px solid rgba(240, 189, 98, 0.22);
    background: rgba(24, 12, 6, 0.58);
}

.theme-template-nav-judy .template-nav-menu a.active,
.theme-template-nav-judy .template-nav-menu a:hover,
.theme-template-nav-judy .theme-site-cta {
    color: #241409;
    background: linear-gradient(180deg, #ffe5b1, #b46d31);
}

.theme-template-nav-judy .template-nav-ribbon {
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.theme-template-nav-judy .template-nav-ribbon span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 4px 18px;
    color: #ffe6b8;
    border: 1px solid rgba(240, 189, 98, 0.24);
    border-bottom: 0;
    background: rgba(20, 10, 5, 0.84);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-template-nav-helius {
    background:
        linear-gradient(180deg, rgba(6, 21, 42, 0.98), rgba(4, 11, 24, 0.96));
    border-bottom: 1px solid rgba(117, 213, 255, 0.28);
}

.theme-template-nav-helius .template-nav-top {
    justify-content: space-between;
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
    border-bottom: 1px solid rgba(117, 213, 255, 0.12);
}

.theme-template-nav-helius .template-nav-frame {
    grid-template-columns: 150px minmax(0, 1fr) auto;
}

.theme-template-nav-helius .template-nav-menu {
    justify-content: flex-start;
}

.theme-template-nav-helius .template-nav-menu a,
.theme-template-nav-helius .template-nav-actions a {
    border: 1px solid rgba(117, 213, 255, 0.15);
    background: rgba(117, 213, 255, 0.05);
}

.theme-template-nav-helius .template-nav-menu a.active,
.theme-template-nav-helius .template-nav-menu a:hover,
.theme-template-nav-helius .theme-site-cta {
    color: #06172b;
    background: linear-gradient(180deg, #d9f8ff, #5fcaff);
}

.template-home {
    min-height: 100vh;
    color: #fff;
    background: #05070a;
}

.template-home-actions,
.template-stat-strip,
.template-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.template-home-actions a,
.template-shortcuts a {
    color: #fff;
    text-decoration: none;
}

.template-home-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 900;
}

.template-stat-strip {
    margin-top: 22px;
}

.template-stat-strip div {
    min-width: 106px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
}

.template-stat-strip span,
.template-shortcuts span,
.template-panel-head span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.template-stat-strip strong {
    display: block;
    color: #fff;
    font-size: 1.3rem;
}

.template-shortcuts {
    flex-direction: column;
}

.template-shortcuts a {
    min-height: 58px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.24);
}

.template-shortcuts i {
    grid-row: span 2;
    font-size: 1.25rem;
}

.template-shortcuts strong {
    color: #fff;
    line-height: 1.05;
}

.template-home-grid,
.template-feature-rail {
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
}

.template-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 28px;
}

.template-home-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-home-grid-3 {
    grid-template-columns: 0.9fr 1.2fr 0.9fr;
}

.template-panel {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 13, 18, 0.88);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

.template-panel-head {
    margin-bottom: 16px;
}

.template-panel-head h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 1.45rem;
}

.template-news-row,
.template-event-list article {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.template-news-row h3,
.template-event-list strong {
    display: block;
    margin: 6px 0;
    color: #fff;
    font-size: 1rem;
}

.template-news-row p,
.template-event-list span,
.template-empty {
    color: rgba(255, 255, 255, 0.66);
}

.template-feature-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 28px;
}

.template-feature-rail a {
    min-height: 230px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 13, 18, 0.9);
}

.template-feature-rail img {
    width: 100%;
    height: 128px;
    display: block;
    object-fit: cover;
}

.template-feature-rail strong,
.template-feature-rail span {
    display: block;
    padding: 0 14px;
}

.template-feature-rail strong {
    margin-top: 13px;
}

.template-feature-rail span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.86rem;
}

.template-home .theme-home-login {
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.template-home-electra {
    background:
        linear-gradient(180deg, rgba(5, 1, 2, 0.28), #050102 760px),
        url("../../images/nesne_market.png") center top / cover no-repeat;
}

.template-electra-stage {
    min-height: 720px;
    padding: 76px 0 34px;
}

.template-electra-shell {
    width: min(1220px, calc(100% - 28px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: stretch;
}

.template-electra-menu,
.template-electra-banner,
.template-electra-access {
    border: 1px solid rgba(255, 82, 60, 0.22);
    background: rgba(13, 4, 5, 0.88);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.template-electra-menu {
    padding: 18px;
}

.template-electra-menu > strong {
    display: block;
    margin-bottom: 14px;
    color: #ffb199;
    font-family: Cinzel, serif;
    font-size: 1.08rem;
}

.template-electra-banner {
    display: grid;
    place-items: center;
    align-content: center;
    padding: 40px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(9, 2, 3, 0.42), rgba(9, 2, 3, 0.94)),
        url("../../images/alvis2-royal-hero.jpg") center 18% / cover no-repeat;
}

.template-electra-banner > span,
.template-tornado-copy > span,
.template-judy-scroll > span,
.template-helius-screen > span {
    color: #ffb199;
    font-size: 0.8rem;
    font-weight: 950;
    text-transform: uppercase;
}

.template-electra-banner img,
.template-tornado-copy img,
.template-judy-scroll img,
.template-helius-screen img {
    max-width: 210px;
    max-height: 112px;
    margin: 12px 0 14px;
    object-fit: contain;
}

.template-electra-banner h1,
.template-tornado-copy h1,
.template-judy-scroll h1,
.template-helius-screen h1 {
    margin: 0;
    color: #fff;
    font-family: Cinzel, serif;
    font-size: 2.45rem;
}

.template-electra-banner p,
.template-tornado-copy p,
.template-judy-scroll p,
.template-helius-screen p {
    max-width: 620px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.72);
}

.template-electra-banner .template-home-actions {
    justify-content: center;
    margin-top: 22px;
}

.template-electra-banner .template-home-actions a,
.template-home-electra .theme-home-login button,
.template-home-electra .theme-home-login a {
    background: linear-gradient(180deg, #ff684d, #9d1721);
}

.template-electra-access {
    padding: 18px;
}

.template-home-electra .template-panel,
.template-home-electra .template-feature-rail a {
    border-color: rgba(255, 82, 60, 0.2);
    background: rgba(18, 6, 8, 0.92);
}

.template-home-tornado {
    background:
        linear-gradient(180deg, rgba(2, 7, 12, 0.18), #020508 780px),
        url("../../images/alvis2-royal-hero.jpg") center top / cover no-repeat;
}

.template-tornado-hero {
    min-height: 720px;
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: end;
    padding: 86px 0 46px;
}

.template-tornado-copy {
    min-height: 520px;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 42px;
    border: 1px solid rgba(100, 215, 255, 0.22);
    background:
        linear-gradient(90deg, rgba(2, 7, 12, 0.94), rgba(10, 31, 48, 0.58)),
        conic-gradient(from 215deg at 72% 42%, rgba(100, 215, 255, 0.24), transparent 32%, rgba(231, 174, 67, 0.12), transparent);
}

.template-tornado-copy > span {
    color: #e7ae43;
}

.template-tornado-copy .template-home-actions {
    margin-top: 22px;
}

.template-tornado-copy .template-home-actions a,
.template-home-tornado .theme-home-login button,
.template-home-tornado .theme-home-login a {
    color: #061018;
    background: linear-gradient(180deg, #d6faff, #64d7ff 52%, #1a6d9d);
}

.template-tornado-login,
.template-tornado-dock {
    border: 1px solid rgba(100, 215, 255, 0.18);
    background: rgba(4, 12, 18, 0.9);
}

.template-tornado-login {
    padding: 18px;
}

.template-tornado-dock {
    width: min(1220px, calc(100% - 28px));
    margin: -20px auto 0;
    padding: 14px;
}

.template-tornado-dock .template-shortcuts {
    flex-direction: row;
}

.template-tornado-dock .template-shortcuts a {
    flex: 1 1 150px;
}

.template-tornado-panels {
    grid-template-columns: 1.2fr 0.9fr 0.8fr;
}

.template-home-tornado .template-panel {
    border-color: rgba(100, 215, 255, 0.18);
    background: rgba(5, 14, 21, 0.92);
}

.template-home-judy {
    background:
        linear-gradient(180deg, rgba(31, 16, 8, 0.28), #080403 740px),
        url("../../images/baslang覺c.png") center top / cover no-repeat;
}

.template-judy-stage {
    width: min(1120px, calc(100% - 28px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: center;
    padding: 70px 0 30px;
}

.template-judy-scroll,
.template-judy-login,
.template-home-judy .template-panel,
.template-home-judy .template-feature-rail a {
    border: 1px solid rgba(240, 189, 98, 0.25);
    background:
        linear-gradient(180deg, rgba(255, 238, 198, 0.08), rgba(255, 238, 198, 0.022)),
        rgba(28, 15, 8, 0.92);
}

.template-judy-scroll {
    min-height: 500px;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 42px;
    text-align: center;
    box-shadow: inset 0 0 0 6px rgba(240, 189, 98, 0.055), 0 24px 70px rgba(0, 0, 0, 0.42);
}

.template-judy-scroll > span {
    color: #ffd89d;
}

.template-judy-scroll .template-home-actions {
    justify-content: center;
    margin-top: 22px;
}

.template-judy-scroll .template-home-actions a,
.template-home-judy .theme-home-login button,
.template-home-judy .theme-home-login a {
    color: #241409;
    background: linear-gradient(180deg, #ffe5b1, #b46d31);
}

.template-judy-login {
    padding: 18px;
}

.template-judy-tabs {
    width: min(1120px, calc(100% - 28px));
    margin: -10px auto 0;
    padding: 12px;
    border: 1px solid rgba(240, 189, 98, 0.2);
    background: rgba(18, 9, 5, 0.86);
}

.template-judy-tabs .template-shortcuts {
    flex-direction: row;
    justify-content: center;
}

.template-judy-tabs .template-shortcuts a {
    min-width: 160px;
    border-radius: 999px;
}

.template-home-helius {
    background:
        radial-gradient(circle at 74% 20%, rgba(117, 213, 255, 0.18), transparent 34%),
        linear-gradient(180deg, #051126, #030813 720px);
}

.template-helius-console {
    width: min(1280px, calc(100% - 28px));
    min-height: 690px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: stretch;
    padding: 68px 0 28px;
}

.template-helius-sidebar,
.template-helius-screen,
.template-helius-access,
.template-home-helius .template-panel,
.template-home-helius .template-feature-rail a {
    border: 1px solid rgba(117, 213, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(117, 213, 255, 0.055), rgba(117, 213, 255, 0.012)),
        rgba(7, 20, 38, 0.9);
}

.template-helius-sidebar,
.template-helius-access {
    padding: 18px;
}

.template-helius-sidebar > strong {
    display: block;
    margin-bottom: 16px;
    color: #d9f8ff;
    font-family: Cinzel, serif;
    font-size: 1.4rem;
}

.template-helius-sidebar .template-stat-strip {
    display: grid;
}

.template-helius-screen {
    display: grid;
    place-items: center;
    align-content: center;
    padding: 42px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(4, 12, 24, 0.28), rgba(4, 12, 24, 0.92)),
        url("../../images/global_siralama.png") center / cover no-repeat;
}

.template-helius-screen > span {
    color: #91dcff;
}

.template-helius-screen .template-home-actions {
    justify-content: center;
    margin-top: 22px;
}

.template-helius-screen .template-home-actions a,
.template-home-helius .theme-home-login button,
.template-home-helius .theme-home-login a {
    color: #06172b;
    background: linear-gradient(180deg, #d9f8ff, #5fcaff);
}

.template-helius-access {
    display: grid;
    align-content: start;
    gap: 16px;
}

.template-helius-access .template-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 1120px) {
    .template-nav-frame,
    .theme-template-nav-electra .template-nav-frame,
    .theme-template-nav-tornado .template-nav-frame,
    .theme-template-nav-judy .template-nav-frame,
    .theme-template-nav-helius .template-nav-frame {
        grid-template-columns: auto 42px 1fr;
    }

    .template-nav-left,
    .template-nav-right,
    .template-nav-online {
        display: none;
    }

    .template-nav-mobile {
        grid-column: 1 / -1;
        display: none;
    }

    .template-nav-mobile.show,
    .template-nav-menu.show {
        display: flex;
        flex-wrap: wrap;
    }

    .template-nav-actions {
        grid-column: 3;
    }

    .template-electra-shell,
    .template-tornado-hero,
    .template-judy-stage,
    .template-helius-console,
    .template-home-grid-2,
    .template-home-grid-3,
    .template-tornado-panels {
        grid-template-columns: 1fr;
    }

    .template-helius-sidebar .template-stat-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .template-feature-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .template-nav-frame,
    .theme-template-nav-electra .template-nav-frame,
    .theme-template-nav-tornado .template-nav-frame,
    .theme-template-nav-judy .template-nav-frame,
    .theme-template-nav-helius .template-nav-frame {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .template-nav-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .template-nav-top {
        flex-wrap: wrap;
        gap: 8px;
        padding: 6px 0;
    }

    .template-electra-stage,
    .template-tornado-hero,
    .template-judy-stage,
    .template-helius-console {
        padding-top: 38px;
    }

    .template-electra-banner,
    .template-tornado-copy,
    .template-judy-scroll,
    .template-helius-screen {
        padding: 24px;
    }

    .template-electra-banner h1,
    .template-tornado-copy h1,
    .template-judy-scroll h1,
    .template-helius-screen h1 {
        font-size: 1.8rem;
    }

    .template-stat-strip,
    .template-helius-sidebar .template-stat-strip,
    .template-feature-rail,
    .theme-rank-columns {
        grid-template-columns: 1fr;
    }

    .template-stat-strip {
        display: grid;
    }

    .template-tornado-dock .template-shortcuts,
    .template-judy-tabs .template-shortcuts {
        flex-direction: column;
    }
}

/* Theme page shells for every public page except wiki and tanitim. */
.template-page-shell {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 58px;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.template-page-rail {
    position: sticky;
    top: 18px;
    min-height: 560px;
    padding: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(8, 10, 14, 0.9);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.template-page-rail-head {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.template-page-rail-head span,
.template-page-rail-head small,
.template-page-rail-stats span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.template-page-rail-head strong {
    display: block;
    margin: 4px 0;
    color: #fff;
    font-family: Cinzel, serif;
    font-size: 1.45rem;
}

.template-page-rail-nav {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.template-page-rail-nav a {
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.9rem;
    font-weight: 850;
}

.template-page-rail-nav a:hover,
.template-page-rail-nav a.active {
    color: #fff;
}

.template-page-rail-nav i {
    text-align: center;
}

.template-page-rail-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.template-page-rail-stats div {
    min-height: 70px;
    display: grid;
    align-content: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.template-page-rail-stats strong {
    color: #fff;
    font-size: 1.12rem;
}

.template-page-content {
    min-width: 0;
}

.theme-structural-page .template-page-content > .auth-shell,
.theme-structural-page .template-page-content > .download-shell,
.theme-structural-page .template-page-content > .market-shell,
.theme-structural-page .template-page-content > .rankings-shell,
.theme-structural-page .template-page-content > .account-panel-shell,
.theme-structural-page .template-page-content > .account-change-page,
.theme-structural-page .template-page-content > .community-page,
.theme-structural-page .template-page-content > .section.section-dark {
    width: 100%;
    max-width: 100%;
    padding-top: 0 !important;
    min-height: auto;
}

.theme-structural-page .template-page-content > .account-panel-shell > .container,
.theme-structural-page .template-page-content > .account-change-page > .container,
.theme-structural-page .template-page-content > .community-page > .container,
.theme-structural-page .template-page-content > .section.section-dark > .container {
    width: 100%;
    max-width: 100%;
}

.theme-structural-electra .template-page-shell {
    grid-template-columns: 240px minmax(0, 1fr);
}

.theme-structural-electra .template-page-rail {
    background:
        linear-gradient(180deg, rgba(255, 84, 62, 0.12), rgba(0, 0, 0, 0.24)),
        rgba(15, 4, 5, 0.94);
    border-color: rgba(255, 90, 70, 0.24);
}

.theme-structural-electra .template-page-rail-head strong,
.theme-structural-electra .template-page-rail-nav a.active,
.theme-structural-electra .template-page-rail-nav a:hover {
    color: #ffb199;
}

.theme-structural-electra .template-page-rail-nav a.active {
    border-color: rgba(255, 104, 77, 0.44);
    background: linear-gradient(180deg, rgba(255, 104, 77, 0.22), rgba(157, 23, 33, 0.2));
}

.theme-structural-electra .template-page-content > .auth-shell,
.theme-structural-electra .template-page-content > .download-shell,
.theme-structural-electra .template-page-content > .market-shell,
.theme-structural-electra .template-page-content > .rankings-shell,
.theme-structural-electra .template-page-content > .account-panel-shell {
    border-left: 3px solid rgba(255, 104, 77, 0.42);
}

.theme-structural-tornado .template-page-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(1220px, calc(100% - 28px));
}

.theme-structural-tornado .template-page-rail {
    position: relative;
    top: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 180px;
    gap: 14px;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(100, 215, 255, 0.12), rgba(0, 0, 0, 0.2)),
        rgba(4, 13, 20, 0.94);
    border-color: rgba(100, 215, 255, 0.24);
}

.theme-structural-tornado .template-page-rail-head {
    padding-bottom: 0;
    border-bottom: 0;
}

.theme-structural-tornado .template-page-rail-nav {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
}

.theme-structural-tornado .template-page-rail-nav a {
    flex: 1 1 112px;
}

.theme-structural-tornado .template-page-rail-stats {
    margin-top: 0;
}

.theme-structural-tornado .template-page-rail-nav a.active,
.theme-structural-tornado .template-page-rail-nav a:hover {
    color: #d6faff;
    border-color: rgba(100, 215, 255, 0.38);
    background: rgba(100, 215, 255, 0.12);
}

.theme-structural-judy .template-page-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
    width: min(1160px, calc(100% - 28px));
}

.theme-structural-judy .template-page-rail {
    order: 2;
    background:
        linear-gradient(180deg, rgba(255, 229, 177, 0.09), rgba(0, 0, 0, 0.18)),
        rgba(31, 16, 8, 0.94);
    border-color: rgba(240, 189, 98, 0.28);
    box-shadow: inset 0 0 0 5px rgba(240, 189, 98, 0.04), 0 24px 64px rgba(0, 0, 0, 0.36);
}

.theme-structural-judy .template-page-content {
    order: 1;
}

.theme-structural-judy .template-page-rail-nav a {
    border-radius: 999px;
}

.theme-structural-judy .template-page-rail-head strong,
.theme-structural-judy .template-page-rail-nav a.active,
.theme-structural-judy .template-page-rail-nav a:hover {
    color: #ffe5b1;
}

.theme-structural-judy .template-page-rail-nav a.active {
    border-color: rgba(240, 189, 98, 0.42);
    background: rgba(240, 189, 98, 0.12);
}

.theme-structural-helius .template-page-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    width: min(1300px, calc(100% - 28px));
}

.theme-structural-helius .template-page-rail {
    background:
        linear-gradient(180deg, rgba(117, 213, 255, 0.1), rgba(117, 213, 255, 0.02)),
        rgba(7, 20, 38, 0.94);
    border-color: rgba(117, 213, 255, 0.24);
}

.theme-structural-helius .template-page-rail-head strong,
.theme-structural-helius .template-page-rail-nav a.active,
.theme-structural-helius .template-page-rail-nav a:hover {
    color: #d9f8ff;
}

.theme-structural-helius .template-page-rail-nav a.active {
    border-color: rgba(117, 213, 255, 0.42);
    background: rgba(117, 213, 255, 0.12);
}

.theme-structural-helius .template-page-content {
    border: 1px solid rgba(117, 213, 255, 0.12);
    background: rgba(4, 12, 24, 0.24);
}

.pin-short-input {
    width: 6.5ch !important;
    max-width: 6.5ch;
    min-width: 6.5ch;
    text-align: center;
    letter-spacing: 0.08em;
}

.auth-input .pin-short-input {
    flex: 0 0 6.5ch;
}

@media (max-width: 1120px) {
    .template-page-shell,
    .theme-structural-electra .template-page-shell,
    .theme-structural-tornado .template-page-shell,
    .theme-structural-judy .template-page-shell,
    .theme-structural-helius .template-page-shell {
        grid-template-columns: 1fr;
    }

    .template-page-rail,
    .theme-structural-judy .template-page-rail {
        position: relative;
        top: auto;
        min-height: 0;
        order: initial;
    }

    .theme-structural-judy .template-page-content {
        order: initial;
    }
}

@media (max-width: 760px) {
    .template-page-shell {
        width: min(1280px, calc(100% - 18px));
        padding-top: 22px;
    }

    .theme-structural-tornado .template-page-rail {
        grid-template-columns: 1fr;
    }

    .template-page-rail-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile hardening for public pages. */
img,
video,
canvas,
svg {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

.table-responsive,
.account-orders,
.market-history,
.rankings-table-wrap,
.wiki-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .royal-topline,
    .royal-nav,
    .royal-hero-inner,
    .royal-quick-menu,
    .royal-section,
    .royal-cta-band,
    .market-hero,
    .market-section,
    .download-hero,
    .download-grid,
    .auth-shell,
    .account-panel-shell,
    .account-change-page,
    .community-page {
        width: min(100% - 20px, 1180px);
    }

    .royal-topline {
        min-height: 0;
        padding: 8px 0;
        gap: 8px;
        font-size: 0.74rem;
    }

    .royal-topline div {
        gap: 8px;
    }

    .royal-nav {
        min-height: 62px;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 10px;
    }

    .royal-brand img {
        height: 62px;
        max-width: 150px;
        object-fit: contain;
        margin: -10px 0;
    }

    .royal-menu-toggle {
        width: 42px;
        height: 38px;
        padding: 0;
        place-items: center;
    }

    .royal-nav-collapse,
    .royal-nav-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .royal-nav-collapse.show {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .royal-nav-collapse a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        text-align: center;
        font-size: 0.82rem;
    }

    .royal-nav-actions {
        gap: 8px;
    }

    .royal-link-button,
    .royal-primary-button,
    .royal-download-button,
    .royal-ghost-button {
        flex: 1 1 132px;
        min-width: 0;
        padding: 9px 10px;
        text-align: center;
    }

    .hero,
    .royal-hero {
        min-height: auto;
        padding: 150px 0 54px;
    }

    .hero-title,
    .royal-hero h1 {
        font-size: clamp(2rem, 11vw, 2.6rem);
        line-height: 1.05;
    }

    .section,
    .royal-section {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .market-shell,
    .download-shell,
    .auth-shell,
    .rankings-shell {
        padding-top: 118px;
    }

    .market-hero,
    .download-hero,
    .auth-hero-card,
    .royal-card,
    .template-page-rail {
        padding: 18px;
    }

    .market-hero h1,
    .download-hero h1,
    .auth-copy h1 {
        font-size: clamp(1.8rem, 9vw, 2.25rem);
        line-height: 1.08;
    }

    .template-page-shell,
    .theme-structural-electra .template-page-shell,
    .theme-structural-tornado .template-page-shell,
    .theme-structural-judy .template-page-shell,
    .theme-structural-helius .template-page-shell {
        width: calc(100% - 18px);
        gap: 12px;
        padding-bottom: 36px;
    }

    .template-page-rail-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .template-page-rail-nav a {
        min-height: 38px;
        padding: 8px;
        font-size: 0.78rem;
    }

    .template-nav-frame,
    .theme-template-nav-electra .template-nav-frame,
    .theme-template-nav-tornado .template-nav-frame,
    .theme-template-nav-judy .template-nav-frame,
    .theme-template-nav-helius .template-nav-frame {
        width: min(100% - 20px, 1180px);
        gap: 10px;
    }

    .template-nav-mobile.show,
    .template-nav-menu.show {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .template-nav-menu a {
        min-height: 38px;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .template-nav-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .template-nav-actions a {
        flex: 1 1 120px;
        justify-content: center;
    }

    .discord-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .royal-nav-collapse.show,
    .template-nav-mobile.show,
    .template-nav-menu.show,
    .template-page-rail-nav {
        grid-template-columns: 1fr;
    }

    .royal-topline {
        display: none;
    }

    .hero,
    .royal-hero,
    .market-shell,
    .download-shell,
    .auth-shell,
    .rankings-shell {
        padding-top: 92px;
    }
}

@media (max-width: 768px) {
    .discord-banner,
    .theme-discord-banner {
        left: 12px !important;
        right: auto !important;
        bottom: 12px !important;
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        border-radius: 16px;
        overflow: visible;
        background: #5865f2;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.16);
    }

    .discord-banner-art {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        position: relative;
        border-radius: inherit;
        background: linear-gradient(180deg, #7289da, #5865f2);
    }

    .discord-banner-art img {
        display: none;
    }

    .discord-banner-art::before {
        content: "\F300";
        font-family: "bootstrap-icons";
        color: #fff;
        font-size: 28px;
        line-height: 1;
    }

    .discord-banner-art::after {
        content: "";
        position: absolute;
        inset: -5px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 19px;
        pointer-events: none;
    }
}
