/* Base & Reset */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Discord onboarding styles */
.discord-onboarding {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.5s ease-out;
}

.discord-box {
    border: 1px solid rgba(88, 101, 242, 0.3);
    /* Discord blurple border */
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(31, 35, 48, 0.6) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.discord-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #5865F2;
    /* Discord blurple */
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discord-logo {
    font-size: 1.5rem;
    background: #5865F2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
    flex-shrink: 0;
}

.discord-title-group {
    flex: 1;
}

.discord-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.discord-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.4;
}

.discord-status-text {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid var(--text-light);
}

.discord-status-text strong {
    color: #fff;
    font-weight: 600;
}

.discord-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    width: auto;
    /* Override global button width */
    text-transform: none;
    /* Override global button uppercase */
    letter-spacing: normal;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(88, 101, 242, 0.3);
    opacity: 1;
}

.btn-discord-join {
    background: #23a559;
    /* Green for join action */
}

.btn-discord-join:hover {
    background: #1a8746;
    box-shadow: 0 6px 12px rgba(35, 165, 89, 0.3);
}

.btn-discord-disconnect {
    background: rgba(240, 71, 71, 0.1);
    color: #f04747;
    border: 1px solid rgba(240, 71, 71, 0.3);
    box-shadow: none;
}

.btn-discord-disconnect:hover {
    background: rgba(240, 71, 71, 0.2);
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-discord-refresh {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--input-border);
    box-shadow: none;
}

.btn-discord-refresh:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Discord Toast */
.discord-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2f3136;
    border-left: 4px solid #5865F2;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    max-width: 320px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
}

.discord-toast.show {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.btn-secondary,
.btn-danger,
.btn-tertiary {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}

.btn-secondary {
    background: #5865F2;
    color: #fff;
}

.btn-secondary:hover {
    background: #4753c7;
}

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

.btn-danger:hover {
    background: #912b42;
}

.btn-tertiary {
    background: #3c4455;
    color: #fff;
}

.btn-tertiary:hover {
    background: #303744;
}


img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

nav {
    background: var(--card-bg);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--input-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 51, 133, 0.3);
}

/* Hero content inner wrapper */
.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Gallery image and overlay */
.gallery-img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    background: #2a0e1f;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(18, 5, 12, 0.95));
    color: var(--text);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Tag chips (gallery, requests, etc) */
.tag-chip {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.5rem;
    margin: 0.15rem;
    border-radius: 12px;
    font-size: 0.65rem;
    display: inline-block;
    color: var(--text);
    white-space: nowrap;
}

/* Card hover effect (for links) */
.card-hover-effect {
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 51, 133, 0.3);
    border-color: var(--primary);
}

/* CSS Variables */
:root {
    --primary: #ff3385;
    --secondary: #9d4edd;
    --bg: #12050c;
    --card-bg: #1f0a16;
    --text: #fce4ec;
    --text-light: #d8b4c5;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --input-bg: #2a0e1f;
    --input-border: #4a1936;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 51, 133, 0.4);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 800px;
}

h1,
h2,
h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: clamp(1.5rem, 3vw, 3rem) 1rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(157, 78, 221, 0.1) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--input-border);
    box-shadow: var(--shadow);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(45deg, var(--primary), var(--secondary), #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 51, 133, 0.3);
}

.hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--input-border);
    position: relative;
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 51, 133, 0.3);
    border-color: var(--primary);
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #2a0e1f;
    position: relative;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 5, 12, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.card:hover .card-overlay {
    opacity: 0;
}

.card-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(255, 51, 133, 0.5));
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--input-border);
}

.card-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: text-shadow 0.3s;
}

.card:hover .card-cta {
    text-shadow: 0 0 8px rgba(255, 51, 133, 0.5);
}

/* Info Section */
.info-section {
    margin-top: 4rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--input-border);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    text-align: center;
}

.info-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--input-border);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 51, 133, 0.3));
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: clamp(1rem, 2.5vw, 2rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--input-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

input[type="text"],
textarea,
select,
input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 51, 133, 0.2);
}

button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 51, 133, 0.4);
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Comic Reader */
.reader-container {
    max-width: min(1000px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.comic-page {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.reader-controls {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reader-btn {
    width: auto;
    min-width: 100px;
}

/* Gallery Masonry: prevent tall items from stretching rows */
.gallery-grid {
    column-count: 4;
    column-gap: 1rem;
    display: block;
}

@media (min-width: 1440px) {
    .gallery-grid {
        column-count: 5;
    }
}

@media (min-width: 1920px) {
    .gallery-grid {
        column-count: 6;
    }
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--input-border);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.gallery-img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(18, 5, 12, 0.95));
    color: var(--text);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Admin */
.admin-panel {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.admin-sidebar {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    height: fit-content;
    border: 1px solid var(--input-border);
}

.admin-menu-item {
    display: block;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--input-bg);
    color: var(--primary);
    padding-left: 1.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background: #3e2723;
    color: #ffcc80;
    border: 1px solid #ffcc80;
}

.status-in_progress {
    background: #1a237e;
    color: #90caf9;
    border: 1px solid #90caf9;
}

.status-completed {
    background: #1b5e20;
    color: #a5d6a7;
    border: 1px solid #a5d6a7;
}

.status-rejected {
    background: #b71c1c;
    color: #ffcdd2;
    border: 1px solid #ffcdd2;
}

/* Request Status Badge (Homepage) */
.request-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.status-open {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border: 2px solid #4caf50;
}

.status-limited {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    border: 2px solid #ffc107;
}

.status-closed {
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: 2px solid #f44336;
}

/* Request Status Banner (Requests Page) */
.status-banner-limited {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 2px solid #ffc107;
    color: var(--text);
}

.status-banner-open {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(102, 187, 106, 0.15));
    border: 2px solid #4caf50;
    color: var(--text);
}

.status-banner-closed {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(211, 47, 47, 0.15));
    border: 2px solid #f44336;
    color: var(--text);
}

/* Site Banners */
#site-banners {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
    animation: fadeIn 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.5;
}

.banner.info {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    color: #90caf9;
}

.banner.warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
    color: #ffcc80;
}

.banner.alert {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ef9a9a;
}

.banner.success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

.banner.discord {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
    color: #aeb5ff;
}

.banner.discord::before {
    background: #5865F2;
    opacity: 1;
}

.banner a {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 0.5rem;
    transition: opacity 0.2s;
}

.banner a:hover {
    opacity: 0.8;
}

.banner-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.6;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: opacity 0.2s, background 0.2s;
    margin-left: auto;
    /* Reset global button styles */
    width: auto;
    height: auto;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 0.75rem;
    }

    .grid {
        gap: 1rem;
    }

    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.6rem 0.75rem;
    }

    .nav-links {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .hero-content {
        padding: 0.5rem 0;
    }

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

    .card-img {
        aspect-ratio: 4/3;
    }

    .gallery-grid {
        column-count: 2;
    }

    .admin-panel {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 1rem;
    }
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stack-sm {
    gap: 0.5rem;
}

.stack-md {
    gap: 1rem;
}

.stack-lg {
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.wrap {
    flex-wrap: wrap;
}

/* Spacing Utilities */
.p-0_5 {
    padding: 0.5rem;
}

.p-0_75 {
    padding: 0.75rem;
}

.p-1 {
    padding: 1rem;
}

.p-1_5 {
    padding: 1.5rem;
}

.px-1 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-0_5 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.m-0 {
    margin: 0;
}

.mb-2 {
    margin-bottom: 2rem;
}

.gap-0_5 {
    gap: 0.5rem;
}

.gap-0_75 {
    gap: 0.75rem;
}

.gap-1 {
    gap: 1rem;
}

/* Size Utilities */
.w-auto {
    width: auto;
}

.min-w-300 {
    min-width: 300px;
}

.w-full {
    width: 100%;
}

/* Surface Utilities */
.bg-card {
    background: var(--card-bg);
}

.bg-input {
    background: var(--input-bg);
}

.bg-overlay-02 {
    background: rgba(255, 255, 255, 0.02);
}

.border {
    border: 1px solid var(--input-border);
}

.border-dashed-primary {
    border: 2px dashed var(--primary);
}

.radius-8 {
    border-radius: 8px;
}

.radius-12 {
    border-radius: 12px;
}

.radius-16 {
    border-radius: 16px;
}

.z-50 {
    z-index: 50;
}

.z-2000 {
    z-index: 2000;
}

.cursor-pointer {
    cursor: pointer;
}

/* Inputs */
.input {
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
}

.button-secondary {
    background: var(--card-bg);
    color: white;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Accessibility: Focus Visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Tooltip helpers */
.help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: #4753c7;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
    line-height: 1;
    user-select: none;
}

.help-tip:hover .help-bubble,
.help-tip:focus .help-bubble,
.help-tip:focus-visible .help-bubble {
    opacity: 1;
    transform: translate(-50%, -6px);
    pointer-events: auto;
}

.help-bubble {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, 0);
    background: #1f2330;
    color: #fff;
    padding: 0.6rem 0.75rem;
    width: 240px;
    max-width: 280px;
    border-radius: 10px;
    font-size: 0.7rem;
    line-height: 1.3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
    z-index: 2000;
}

.help-bubble:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2330;
}

/* Carousel Modal */
.carousel-modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.carousel-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#carouselImage {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.carousel-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.carousel-close:hover,
.carousel-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.carousel-prev,
.carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.carousel-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #f2f2f2;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

/* Premium Request Styles */
.premium-request {
    border: 1px solid #ffd700 !important;
    /* Gold border */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.premium-request::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.floating-heart {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    animation: floatUp 3s ease-out forwards;
    z-index: 5;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-60px) scale(1.2) rotate(20deg);
        opacity: 0;
    }
}

/* Admin Star */
.admin-star {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    z-index: 10;
    animation: pulse-star 2s infinite;
}

@keyframes pulse-star {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}