/* ============================================
   茉莉柚茶 Texture Packs - Glass UI Style
   Inspired by https://glass-ui.crenspire.com/
   ============================================ */

/* === CSS Variables === */
:root {
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --glass-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
    --glass-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
    --blur: 30px;
    --blur-sm: 15px;
    --blur-lg: 50px;
    --primary: #06b6d4;
    --accent: #06b6d4;
    --accent-dim: rgba(6, 182, 212, 0.1);
    --accent-glow: rgba(6, 182, 212, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Background Effects === */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6, 182, 212, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* === Glass Components === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-sm {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-sm);
}

.glass-lg {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(6, 182, 212, 0.05);
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand .logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 10s ease-in-out infinite;
}

.hero-bg .orb:nth-child(1) {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.15);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.hero-bg .orb:nth-child(2) {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.1);
    bottom: 20%;
    right: -5%;
    animation-delay: -3s;
}

.hero-bg .orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: rgba(6, 182, 212, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    max-width: 800px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.btn-glass {
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* === Section === */
.section {
    padding: 80px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* === Texture Grid === */
.texture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.texture-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.texture-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    transition: transform 0.6s ease;
}

.texture-card:hover .texture-card-image {
    transform: scale(1.05);
}

.texture-card-body {
    padding: 20px;
}

.texture-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.texture-card-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.texture-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.texture-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.texture-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === Detail Page === */
.detail-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, var(--bg-primary) 100%);
    z-index: 0;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.detail-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
}

.detail-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-description p {
    margin-bottom: 16px;
}

.detail-features {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
}

.feature-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.detail-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-card {
    padding: 24px;
    border-radius: var(--radius);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.sidebar-info {
    display: grid;
    gap: 12px;
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-info-row:last-child {
    border-bottom: none;
}

.sidebar-info-row .label {
    color: var(--text-muted);
}

.sidebar-info-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

/* === Image Gallery === */
.gallery {
    margin: 40px 0;
}

.gallery h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
}

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

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* === Video Section === */
.video-section {
    margin: 40px 0;
}

.video-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Admin === */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.admin-sidebar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-nav {
    list-style: none;
    flex: 1;
}

.admin-sidebar-nav li {
    margin-bottom: 4px;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.admin-sidebar-nav a.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
}

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

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.01);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* === Table === */
.table-container {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.table-actions {
    display: flex;
    gap: 8px;
}

/* === Login Page === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.login-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.login-card p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

/* === File Upload === */
.file-upload-area {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.file-upload-area:hover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.03);
}

.file-upload-area .icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-area p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-upload-area .hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* === Preview List === */
.preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity var(--transition);
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

/* === Upload Progress Modal === */
.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.upload-modal.open {
    display: flex;
}

.upload-modal-content {
    width: 90%;
    max-width: 400px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.3s ease;
}

.upload-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.upload-modal-header svg {
    color: var(--primary);
}

.upload-modal-body {
    padding: 24px;
}

.upload-filename {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-batch-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.upload-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #0891b2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.upload-progress-text {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.upload-modal-footer {
    padding: 12px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: flex-end;
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}

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

.toast.success {
    border-color: rgba(6, 182, 212, 0.3);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

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

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .detail-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    /* Navbar */
    .navbar-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-inner {
        padding: 0 16px;
        height: 60px;
    }

    /* Hero */
    .hero {
        padding: 100px 16px 60px;
        min-height: 90vh;
    }

    .hero-bg .orb:nth-child(1) {
        width: 250px;
        height: 250px;
    }

    .hero-bg .orb:nth-child(2) {
        width: 200px;
        height: 200px;
    }

    .hero-bg .orb:nth-child(3) {
        width: 150px;
        height: 150px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
        padding: 14px 24px;
    }

    /* Texture Grid */
    .texture-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section {
        padding: 48px 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .texture-card-body {
        padding: 16px;
    }

    /* Detail Page */
    .detail-hero {
        min-height: 40vh;
        padding: 90px 16px 40px;
    }

    .detail-hero-content h1 {
        font-size: 1.8rem;
    }

    .detail-meta {
        gap: 12px;
        font-size: 0.85rem;
    }

    .detail-body {
        grid-template-columns: 1fr;
        padding: 32px 16px;
        gap: 24px;
    }

    .detail-description {
        font-size: 0.95rem;
    }

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

    .video-section h2,
    .gallery h2 {
        font-size: 1.3rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 16px;
    }

    /* Admin */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        padding: 12px 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .admin-sidebar-brand {
        padding: 0;
        border-bottom: none;
        margin-bottom: 0;
        margin-right: 12px;
        font-size: 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .admin-sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2px;
        flex: 1;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .admin-sidebar-nav li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .admin-sidebar-nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .admin-sidebar-nav li:last-child {
        margin-left: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px 16px;
    }

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

    .admin-header h1 {
        font-size: 1.4rem;
    }

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

    /* Table - horizontal scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        min-width: 600px;
    }

    thead th,
    tbody td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .table-actions {
        flex-direction: column;
        gap: 4px;
    }

    .table-actions .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Login */
    .login-card {
        padding: 28px 24px;
    }

    .login-card h1 {
        font-size: 1.5rem;
    }

    /* Toast */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }

    /* Footer */
    footer {
        padding: 24px 16px !important;
        font-size: 0.8rem !important;
    }

    /* Lightbox */
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

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

    .detail-hero {
        min-height: 30vh;
        padding: 80px 12px 30px;
    }

    .detail-hero-content h1 {
        font-size: 1.5rem;
    }

    .detail-body {
        padding: 24px 12px;
    }

    .detail-features {
        gap: 8px;
    }

    .feature-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .admin-sidebar {
        padding: 12px;
    }

    .admin-sidebar-nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .admin-main {
        padding: 16px 12px;
    }

    .sidebar-card {
        padding: 14px;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-glass {
        padding: 12px 20px;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand .logo {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .admin-sidebar-brand {
        font-size: 0.95rem;
    }

    .admin-sidebar-nav a {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}