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

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #6366f1;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #6366f1;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100vw;
}

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.logo-number {
    font-size: 32px;
    font-weight: 900;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle, .lang-selector, .header-backup-selector {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.theme-toggle:hover, .lang-selector:hover, .header-backup-selector:hover {
    background: var(--bg-tertiary);
}

.lang-dropdown, .header-backup-dropdown {
    position: relative;
}

.lang-menu, .header-backup-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    display: none;
    min-width: 160px;
    z-index: 1000;
}

.lang-menu.show, .header-backup-menu.show {
    display: block;
}

.lang-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-secondary);
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.header-backup-domain-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
}

.header-backup-domain-link:hover {
    background: var(--bg-secondary);
}

.header-backup-domain-link:first-child {
    border-radius: 8px 8px 0 0;
}

.header-backup-domain-link:last-child {
    border-radius: 0 0 8px 8px;
}

.flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.container {
    display: flex;
    min-height: calc(100vh - 73px);
}

.sidebar {
    width: 260px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-group-title {
    padding: 0 24px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-item {
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-secondary);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.main-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}

.search-container {
    margin-bottom: 32px;
}

.search-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.model-description {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    margin: 16px 0 24px;
    border-left: 4px solid var(--primary);
    white-space: pre-wrap;
}

.model-description:empty {
    display: none;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.model-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow);
}

.model-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.premium-watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    backdrop-filter: blur(4px);
}

.model-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.model-info {
    padding: 16px;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.model-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.fav-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.fav-btn:hover {
    transform: scale(1.2);
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.model-tag {
    font-size: 12px;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-secondary);
}

.model-stats {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.model-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.skeleton-image {
    width: 100%;
    height: 280px;
}

.skeleton-content {
    padding: 16px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    width: 80%;
    border-radius: 4px;
    margin-bottom: 8px;
}

.gallery-view {
    margin-top: 24px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.model-profile-picture {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.back-btn {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: var(--text-primary);
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 4px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item {
    --wm-top: 50%;
    --wm-bottom: auto;
    --wm-left: 50%;
    --wm-right: auto;
    --wm-transform: translate(-50%, -50%);
}

.gallery-item::before {
    content: '404leak.com';
    position: absolute;
    top: var(--wm-top);
    bottom: var(--wm-bottom);
    left: var(--wm-left);
    right: var(--wm-right);
    transform: var(--wm-transform);
    color: rgba(255, 255, 255, 0.25);
    font-size: 26px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 3;
}

.gallery-item img,
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.like-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.like-btn:hover {
    transform: scale(1.1);
    background: white;
}

.like-btn.liked {
    background: var(--danger);
    color: white;
}

/* Report button on gallery items - highly visible red flag */
.gallery-item .report-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: 2px solid white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-item .report-btn:hover {
    transform: scale(1.15);
    background: rgba(220, 38, 38, 1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.media-model-name {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.favorites-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.favorites-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.favorites-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.favorites-content {
    display: none;
}

.favorites-content.active {
    display: block;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content {
    --wm-top: 50%;
    --wm-bottom: auto;
    --wm-left: 50%;
    --wm-right: auto;
    --wm-transform: translate(-50%, -50%);
}

.lightbox-content::after {
    content: '404leak.com';
    position: absolute;
    top: var(--wm-top);
    bottom: var(--wm-bottom);
    left: var(--wm-left);
    right: var(--wm-right);
    transform: var(--wm-transform);
    color: rgba(255, 255, 255, 0.25);
    font-size: 40px;
    font-weight: 900;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    pointer-events: none;
    z-index: 5;
}

.lightbox-image,
.lightbox-video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-video {
    background: #000;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    z-index: 10001;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.form-container {
    max-width: 600px;
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-btn {
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.form-btn:hover {
    background: var(--primary-hover);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 4px 12px var(--shadow);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .loading {
    width: 50px;
    height: 50px;
    border-width: 5px;
}

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.footer .backup-domains-banner {
    margin: 0 auto 20px auto;
    max-width: 800px;
}

.profile-info {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: bold;
}

.profile-details h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.backup-domains-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--primary);
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.backup-domains-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.backup-domains-close {
    position: absolute;
    top: -8px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.backup-domains-close:hover {
    color: var(--text-primary);
}

.backup-domains-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.backup-domains-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.backup-domain-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.backup-domain-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.backup-domains-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.2s;
}

.backup-domains-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    /* Header improvements */
    .header {
        padding: 12px 16px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-number {
        font-size: 22px;
    }

    .hamburger {
        display: flex;
    }

    .header-backup-selector span:last-child {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 73px;
        transform: translateX(-100%);
        z-index: 99;
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        padding: 12px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .page {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Model Cards - Major improvements */
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }

    .model-card {
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .model-card:active {
        transform: scale(0.98);
    }

    .model-image-wrapper {
        height: 240px;
    }

    .premium-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 10px;
        font-weight: 700;
        border-radius: 16px;
        box-shadow: 0 2px 6px rgba(251, 191, 36, 0.5);
    }

    .model-info {
        padding: 12px;
    }

    .model-header {
        margin-bottom: 8px;
        gap: 8px;
    }

    .model-name {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .fav-btn {
        padding: 8px;
        font-size: 18px;
        min-width: 36px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .model-tags {
        gap: 4px;
        margin-bottom: 8px;
        max-height: 52px;
        overflow: hidden;
    }

    .model-tag {
        font-size: 10px;
        padding: 4px 6px;
        border-radius: 6px;
        font-weight: 600;
        line-height: 1.2;
    }

    .model-stats {
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .model-stat-item {
        font-size: 11px;
        font-weight: 600;
    }

    .page-title {
        font-size: 24px;
        padding: 0 4px;
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .model-description {
        padding: 12px 16px;
        font-size: 14px;
        margin: 12px 0 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .tags-container {
        margin-top: 12px;
        gap: 6px;
    }

    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Gallery improvements */
    .gallery-view {
        margin-top: 16px;
        overflow-x: hidden;
        max-width: 100%;
    }

    .gallery-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .gallery-header > div {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .model-profile-picture {
        width: 80px;
        height: 80px;
        border: 3px solid var(--primary);
    }

    .back-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .share-btn, .report-btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .share-btn svg, .report-btn svg {
        width: 14px;
        height: 14px;
    }

    .media-filters {
        flex-wrap: wrap;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .filter-select {
        padding: 6px 12px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .gallery-item {
        border-radius: 12px;
        height: 180px;
    }

    /* Lightbox controls */
    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }


    .gallery-item::before {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .lightbox-content::after {
        font-size: 28px;
        letter-spacing: 2px;
    }
}


/* Premium Page Styles */
.premium-hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: 60px;
}

.premium-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

.premium-title {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

.premium-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 32px;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.plan-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.plan-card.featured {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.plan-header h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.plan-savings {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.plan-features {
    list-style: none;
    margin: 32px 0;
}

.plan-features li {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.check {
    color: #10b981;
    font-weight: 700;
    margin-right: 12px;
    font-size: 18px;
}

.plan-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.featured-button {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.featured-button:hover {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.premium-benefits {
    text-align: center;
    margin-bottom: 60px;
}

.premium-benefits h2 {
    font-size: 36px;
    margin-bottom: 48px;
}

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

.benefit-card {
    background: var(--bg-tertiary);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.premium-guarantee {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.premium-guarantee h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.premium-guarantee p {
    color: var(--text-secondary);
    font-size: 16px;
}

.premium-nav {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-left: 3px solid #6366f1 !important;
}

.premium-nav:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

/* Ad Banner Styles */
.ad-banner {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.ad-banner::before {
    content: "Advertisement";
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.ad-interstitial {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ad-interstitial-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.ad-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.ad-close:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #premium {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .premium-hero {
        padding: 40px 16px;
        max-width: 100%;
    }

    .premium-title {
        font-size: 32px;
    }

    .premium-subtitle {
        font-size: 16px;
    }

    .premium-plans {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .price-amount {
        font-size: 42px;
    }

    .plan-card {
        padding: 24px;
        margin: 0;
        box-sizing: border-box;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #premium {
        padding: 0;
        overflow-x: hidden;
    }

    .premium-hero {
        padding: 30px 12px;
    }

    .premium-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .premium-subtitle {
        font-size: 14px;
    }

    .premium-plans {
        padding: 0 12px;
        gap: 20px;
        box-sizing: border-box;
    }

    .plan-card {
        padding: 20px;
        box-sizing: border-box;
    }

    .price-amount {
        font-size: 36px;
    }

    .plan-features li {
        font-size: 14px;
    }
}

/* Media Filters */
.filter-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--bg-hover);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.filter-select {
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* Video Elements */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gallery-item.video {
    position: relative;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
}

.gallery-item.premium::before {
    content: '🔒 Premium';
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #f59e0b;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

#page-backup-domains-banner {
    margin-bottom: 20px;
}

.page-backup-domains-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #60a5fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.backup-domains-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fb923c;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 1px 6px rgba(249, 115, 22, 0.08);
    transition: all 0.2s ease;
}

.page-backup-domains-banner:hover,
.backup-domains-banner:hover {
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.12);
}

[data-theme="dark"] .page-backup-domains-banner,
[data-theme="dark"] .backup-domains-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
}

.backup-domains-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.backup-domains-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

[data-theme="dark"] .backup-domains-close {
    color: #94a3b8;
}

[data-theme="dark"] .backup-domains-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.backup-domains-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.backup-domains-banner-content {
    flex: 1;
    min-width: 0;
}

.backup-domains-banner-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 6px;
}

[data-theme="dark"] .backup-domains-banner-text {
    color: #93c5fd;
}

.backup-domains-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.backup-domain-link {
    background: #fff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #93c5fd;
}

[data-theme="dark"] .backup-domain-link {
    background: #1e293b;
    color: #60a5fa;
    border: 1px solid #475569;
}

.backup-domain-link:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .backup-domain-link:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.news-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.news-header {
    margin-bottom: 20px;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-verification-overlay.hidden {
    display: none;
}

.age-verification-modal {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

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

.age-verification-icon {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.age-verification-modal h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.age-verification-modal p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.age-verification-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-style: italic;
}

.age-verification-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-verify-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.age-verify-enter {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
}

.age-verify-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.age-verify-exit {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.age-verify-exit:hover {
    background: var(--border);
}

@media (max-width: 768px) {
    .age-verification-modal {
        padding: 32px 24px;
    }

    .age-verification-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .age-verification-modal h2 {
        font-size: 22px;
    }

    .age-verification-modal p {
        font-size: 14px;
    }
}

.news-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.news-item-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.news-item-date {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .backup-domains-banner {
        padding: 8px 10px;
        gap: 8px;
        margin: 10px 0 12px 0;
    }

    .backup-domains-banner-icon {
        font-size: 16px;
    }

    .backup-domains-banner-text {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .backup-domain-link {
        font-size: 11px;
        padding: 3px 8px;
    }

    .news-section {
        padding: 16px;
    }

    .news-title {
        font-size: 20px;
    }
}

.tiktok-container {
    max-width: 600px;
    margin: 0 auto;
    height: calc(100vh - 140px);
    overflow: hidden;
    position: relative;
}

.tiktok-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.tiktok-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    border-radius: 12px;
}

.tiktok-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 42px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    pointer-events: none;
    z-index: 5;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Removed .tiktok-overlay wrapper - elements are now positioned independently */

/* Add gradient background directly to wrapper for visual effect */
.tiktok-video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.tiktok-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 120px;
    z-index: 10;
    pointer-events: none;
}

.tiktok-model-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tiktok-model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tiktok-model-tags .model-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.tiktok-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.tiktok-action-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.tiktok-action-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.tiktok-action-btn svg {
    stroke: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.tiktok-action-btn span:first-child {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.tiktok-action-count,
.tiktok-action-label {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tiktok-top-tabs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.tiktok-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    transition: color 0.2s ease;
    pointer-events: auto;
}

.tiktok-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tiktok-tab.active {
    color: white;
}

.tiktok-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: white;
}

.tiktok-profile-section {
    position: absolute;
    bottom: 130px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.tiktok-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.tiktok-profile-avatar:hover {
    transform: scale(1.1);
}

.tiktok-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tiktok-follow-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff2d55;
    border: 2px solid white;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    margin-top: -12px;
    pointer-events: auto;
}

.tiktok-follow-btn:hover {
    transform: scale(1.1);
}

.tiktok-follow-btn.following {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}

.tiktok-follow-btn.following #tiktok-follow-icon {
    display: none;
}

.tiktok-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.tiktok-loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#tiktok.page {
    padding: 0;
    height: calc(100vh - 80px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .tiktok-container {
        height: calc(100vh - 100px);
        max-width: 100%;
    }

    .tiktok-video-wrapper {
        border-radius: 0;
    }

    .tiktok-video {
        border-radius: 0;
    }

    .tiktok-overlay {
        padding: 24px 16px;
    }

    .tiktok-model-name {
        font-size: 18px;
    }

    .tiktok-action-btn span:first-child {
        font-size: 28px;
    }
}

[data-premium-locked="true"] img,
[data-premium-locked="true"] video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none !important;
}

[data-premium-locked="true"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

.premium-overlay {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none !important;
    z-index: 2;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

[data-theme="light"] .premium-overlay {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    backdrop-filter: blur(2px);
}

.premium-overlay span:last-child {
    font-size: 14px;
    margin-top: 10px;
}

.captcha-container {
    margin: 16px 0;
}

.form-message {
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    display: none;
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.form-message.error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    display: block;
}

.form-message.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    display: block;
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reset-password-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.2s;
}

.reset-password-link:hover {
    text-decoration: underline;
}

.security-settings {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.security-settings h3 {
    margin-bottom: 32px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.security-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.security-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.security-option:last-child {
    margin-bottom: 0;
}

.security-option-info {
    flex: 1;
}

.security-option-info h4 {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.security-option-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

#change-password-form {
    margin-top: 24px;
}

#change-password-form .form-group {
    margin-bottom: 20px;
}

#change-password-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

#change-password-form .form-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

#change-password-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#change-password-form .form-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

#change-password-form .form-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#2fa-setup {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    padding: 32px;
    border-radius: 16px;
    margin-top: 24px;
    border: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#2fa-setup h4 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

#2fa-setup ol {
    margin-bottom: 24px;
    line-height: 2;
    color: var(--text-primary);
    padding-left: 20px;
}

#2fa-setup ol li {
    margin-bottom: 8px;
    font-size: 15px;
}

#qr-code {
    margin: 32px 0;
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#qr-code img {
    max-width: 240px;
    border-radius: 8px;
}

#2fa-setup .form-group {
    margin-bottom: 24px;
}

#2fa-setup .form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
}

#2fa-setup .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    transition: all 0.2s ease;
}

#2fa-setup .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

#2fa-setup .form-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#2fa-setup .form-btn:first-of-type {
    background: var(--primary);
    color: white;
}

#2fa-setup .form-btn:first-of-type:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#2fa-setup .form-btn:last-of-type {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

#2fa-setup .form-btn:last-of-type:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-primary {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.password-toggle-btn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .captcha-container > div {
        flex-direction: column;
        gap: 8px !important;
    }

    .captcha-container input {
        width: 100%;
    }

    .security-settings {
        padding: 20px;
        margin: 20px 0;
    }

    .security-settings h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .security-option {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .security-option-info h4 {
        font-size: 16px;
    }

    .security-option-info p {
        font-size: 13px;
    }

    .btn-primary {
        width: 100%;
    }

    #change-password-form {
        max-width: 100%;
    }

    #2fa-setup {
        padding: 20px;
    }

    #2fa-setup h4 {
        font-size: 18px;
    }

    #2fa-setup ol {
        font-size: 14px;
        padding-left: 16px;
    }

    #qr-code {
        padding: 20px;
    }

    #qr-code img {
        max-width: 200px;
    }

    #2fa-setup .form-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}


/* Account Settings Page */
.account-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    background: var(--bg-tertiary);
    border-radius: 12px 12px 0 0;
    margin: -24px -24px 0 -24px;
}

.account-settings-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-settings-header-right {
    display: flex;
    align-items: center;
}

.admin-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.admin-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.admin-panel-link svg {
    width: 18px;
    height: 18px;
}

.account-settings-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.account-settings-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.account-settings-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.account-header-email {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 8px;
}

.account-tabs {
    display: flex;
    gap: 8px;
    padding: 0 40px;
    margin: 24px -24px 0 -24px;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
}

.account-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.account-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.account-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    background: var(--bg-primary);
}

.account-tab svg {
    stroke: currentColor;
}

.account-content-wrapper {
    padding: 32px 40px;
}

.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

.account-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

[data-theme="dark"] .account-section {
    background: #1e293b;
    border-color: #334155;
}

.account-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .account-section-header {
    border-bottom-color: #334155;
}

.account-section-header svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

[data-theme="dark"] .account-section-header svg {
    color: var(--primary);
}

.account-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.account-section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.account-field {
    margin-bottom: 28px;
}

.account-field:last-child {
    margin-bottom: 0;
}

.account-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.account-field-label svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.account-field-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.account-field-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.account-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

[data-theme="dark"] .account-input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.account-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
}

[data-theme="dark"] .account-input:focus {
    border-color: var(--primary);
    background: #0f172a;
}

.account-input:read-only {
    background: var(--bg-tertiary);
    cursor: not-allowed;
    opacity: 0.7;
}

[data-theme="dark"] .account-input:read-only {
    background: #334155;
    opacity: 0.6;
}

.account-input-action {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-input-action:hover {
    color: var(--text-primary);
}

.account-input-action svg {
    display: block;
}

.account-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.account-save-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.account-save-btn svg {
    stroke: currentColor;
}

.account-action-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-action-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.account-cancel-btn {
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-cancel-btn:hover {
    background: var(--bg-tertiary);
}

.account-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--danger);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-logout-btn:hover {
    background: var(--danger);
    color: var(--bg-primary);
    border-color: var(--danger);
}

.account-logout-btn svg {
    stroke: currentColor;
}

.account-2fa-setup {
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.account-2fa-setup h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.account-2fa-steps {
    margin: 0 0 32px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: step-counter;
}

.account-2fa-steps li {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    padding-left: 44px;
    counter-increment: step-counter;
}

.account-2fa-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

[data-theme="dark"] .account-2fa-steps {
    color: #94a3b8;
}

[data-theme="dark"] .account-2fa-steps li {
    color: #cbd5e1;
}

.account-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0;
    padding: 32px;
    background: #0f172a;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.account-qr-code::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 82, 204, 0.1) 100%);
    pointer-events: none;
}

.account-qr-code canvas {
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.account-2fa-setup .account-field {
    margin-top: 32px;
}

.account-2fa-setup .account-field-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: block;
}

.account-2fa-setup #2fa-code {
    width: 100%;
    padding: 18px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.5em;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    transition: all 0.2s ease;
}

[data-theme="dark"] .account-2fa-setup #2fa-code {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.account-2fa-setup #2fa-code:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

[data-theme="dark"] .account-2fa-setup #2fa-code:focus {
    background: #0f172a;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
}

.account-2fa-setup .account-save-btn {
    flex: 1;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.account-2fa-setup .account-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
}

.account-2fa-setup .account-cancel-btn {
    flex: 1;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .account-2fa-setup .account-cancel-btn {
    border-color: #334155;
    color: #94a3b8;
}

.account-2fa-setup .account-cancel-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

[data-theme="dark"] .account-2fa-setup .account-cancel-btn:hover {
    background: #1e293b;
    border-color: #94a3b8;
}

@media (max-width: 768px) {
    .account-settings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }

    .account-settings-header-right {
        width: 100%;
    }

    .account-header-email {
        display: block;
        text-align: center;
    }

    .account-tabs {
        padding: 0 16px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .account-tab {
        padding: 14px 16px;
        font-size: 14px;
    }

    .account-content-wrapper {
        padding: 24px 16px;
    }

    .account-section {
        padding: 24px 16px;
    }

    .account-section-header {
        flex-direction: column;
        gap: 12px;
    }
}


/* Extra small devices (phones in portrait, < 480px) */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-number {
        font-size: 20px;
    }

    .theme-toggle, .lang-selector {
        padding: 8px;
        font-size: 18px;
    }

    /* Single column layout for very small screens */
    .models-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 420px;
        margin: 0 auto;
    }

    .model-card {
        border-radius: 20px;
    }

    .model-image-wrapper {
        height: 360px;
    }

    .premium-badge {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .model-info {
        padding: 16px;
    }

    .model-name {
        font-size: 18px;
    }

    .model-tag {
        font-size: 11px;
        padding: 5px 8px;
    }

    .model-stats {
        font-size: 13px;
    }

    .fav-btn {
        padding: 10px;
        font-size: 20px;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Improve touch targets globally on mobile */
@media (max-width: 768px) {
    button, a, .clickable {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better spacing for readability */
    body {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-text-size-adjust: 100%;
    }

    /* Smooth scrolling on mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix blurry text and animations on mobile */
    .model-card, .gallery-item, button, a {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Ensure text stays crisp during transitions */
    .model-name, .model-tag, .model-stats, p, h1, h2, h3, h4, h5, h6 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Crypto Payment Modal */
.crypto-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.crypto-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.crypto-modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px var(--shadow);
    animation: slideUp 0.3s ease;
}

.crypto-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.crypto-modal-close:hover {
    color: var(--text-primary);
}

.crypto-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

.crypto-modal-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin: 0;
}

.crypto-modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.crypto-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.crypto-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.crypto-card.selected {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.crypto-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.crypto-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.crypto-card-code {
    font-size: 14px;
    color: var(--text-secondary);
}

.crypto-back-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.crypto-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.crypto-payment-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin: 32px 0;
}

@media (max-width: 768px) {
    .crypto-payment-info {
        grid-template-columns: 1fr;
    }
}

.crypto-qr-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-qr-code {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.crypto-payment-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crypto-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crypto-detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-detail-value {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-all;
}

.crypto-address-container {
    display: flex;
    gap: 8px;
}

.crypto-address-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
}

.crypto-copy-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.crypto-copy-btn:hover {
    background: var(--primary-hover);
}

.crypto-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.crypto-status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.crypto-status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.crypto-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0;
}

.crypto-instructions {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.crypto-instructions h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 16px;
}

.crypto-instructions ol {
    color: var(--text-secondary);
    padding-left: 20px;
}

.crypto-instructions li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.crypto-loading {
    text-align: center;
    padding: 60px 20px;
}

.crypto-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.crypto-loading p {
    color: #999;
    font-size: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Backup Codes Styling */
.backup-code-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    transition: all 0.2s;
}

.backup-code-item:hover {
    background: var(--card-bg);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Modern Profile Styles */
#profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.modern-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.modern-account-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modern-account-icon {
    width: 64px;
    height: 64px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-account-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--text);
}

.modern-account-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text);
}

.modern-account-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.modern-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.modern-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.modern-tab svg {
    width: 18px;
    height: 18px;
}

.modern-tab:hover {
    color: var(--text);
    background: var(--bg-secondary);
}

.modern-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.modern-tab-content {
    display: none;
}

.modern-tab-content.active {
    display: block;
}

.modern-content-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.modern-section-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.modern-section-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modern-section-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
}

.modern-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.modern-section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), #c9984b);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 131, 74, 0.3);
}

.modern-btn svg {
    width: 18px;
    height: 18px;
}

.modern-info-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    font-size: 14px;
    color: var(--text-secondary);
}

.modern-info-message svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.modern-security-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 14px;
}

.modern-security-tip-icon {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    flex-shrink: 0;
}

.modern-security-tip-text {
    color: var(--text-secondary);
}

/* Profile Responsive */
@media (max-width: 768px) {
    #profile {
        padding: 24px 12px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .modern-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .modern-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .modern-tabs::-webkit-scrollbar {
        display: none;
    }

    .modern-content-section {
        padding: 24px 16px;
    }

    .modern-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #profile {
        padding: 16px 8px;
    }

    .modern-content-section {
        padding: 20px 12px;
    }

    .modern-section-title {
        font-size: 18px;
    }
}

/* Additional Profile Styles */
.modern-account-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modern-account-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.modern-badge.active {
    background: rgba(184, 131, 74, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.modern-badge svg {
    width: 14px;
    height: 14px;
}

.admin-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modern-form-group {
    margin-bottom: 24px;
}

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

.modern-form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    transition: all 0.2s;
    box-sizing: border-box;
}

.modern-form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 131, 74, 0.1);
}

.modern-input-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.modern-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.modern-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.modern-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.modern-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    margin-right: 12px;
}

.modern-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: 0.3s;
    border-radius: 26px;
}

.modern-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.modern-toggle-switch input:checked + .modern-toggle-slider {
    background: var(--gold);
    border-color: var(--gold);
}

.modern-toggle-switch input:checked + .modern-toggle-slider:before {
    transform: translateX(22px);
}

.modern-toggle-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.modern-2fa-setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.modern-2fa-step {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
}

.modern-2fa-step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px 0;
}

.modern-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
}

.modern-secret-code {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 12px;
}

.modern-secret-code code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text);
}

.modern-copy-btn {
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-copy-btn:hover {
    background: var(--card-bg);
    border-color: var(--gold);
}

.modern-payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.modern-payment-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modern-payment-icon {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-payment-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
}

.modern-payment-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.modern-payment-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.modern-payment-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modern-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.modern-status-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.modern-status-badge.pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.modern-status-badge.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modern-device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.modern-device-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modern-device-icon {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-device-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
}

.modern-device-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.modern-device-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.modern-device-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

.modern-device-current svg {
    width: 12px;
    height: 12px;
}

.modern-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text);
}

.modern-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Profile Responsive Overrides */
@media (max-width: 768px) {
    .modern-account-header-right {
        width: 100%;
    }

    .modern-account-badges-row {
        flex-wrap: wrap;
    }

    .modern-2fa-setup {
        grid-template-columns: 1fr;
    }

    .modern-input-row {
        flex-direction: column;
    }

    .modern-payment-item,
    .modern-device-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .modern-payment-status,
    .modern-device-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Profile Form Hints and Password Strength */
.modern-form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 8px 0;
}

.password-strength-indicator {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.password-tips {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.password-tip {
    font-size: 12px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Logout Button */
.modern-content-section a[href="#"],
.modern-content-section button[onclick*="Logout"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-content-section a[href="#"]:hover,
.modern-content-section button[onclick*="Logout"]:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* My Tickets Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal.active,
.modal[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-modal {
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.close-modal:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ticket-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.stat-badge {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        border-radius: 12px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .tickets-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .ticket-stats {
        flex-wrap: wrap;
        width: 100%;
        margin-top: 16px;
    }

    .stat-badge {
        flex: 1;
        min-width: 80px;
    }
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
    width: 100%;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 44px;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-ellipsis {
    color: var(--text-secondary);
    padding: 0 8px;
    font-weight: 500;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .pagination-controls {
        margin: 20px 0;
        padding: 15px;
        gap: 15px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }

    .pagination-numbers {
        gap: 6px;
    }

    .pagination-info {
        font-size: 13px;
    }
}
