/* assets/css/style.css */
/* ... existing styles ... */

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.tabs-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 10px;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

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

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

:root {
    /* Japanese Pastel Theme (Wasane) */
    --primary: #f596aa;
    /* Sakura Pink */
    --primary-dark: #d05a6e;
    /* Shinko Pink for better legibility */
    --primary-glow: rgba(245, 150, 170, 0.2);
    --secondary: #a8c97f;
    /* Matcha Green */
    --accent: #89c3eb;
    /* Mizu Blue */
    --fuji: #e3d5f3;
    /* Fuji Lavender */
    --bg-paper: #fdfbf7;
    /* Shironeri White */
    --dark: #4a4a4a;
    /* Sumi Ink */
    --dark-card: #f9f6f1;
    --light: #fdfbf7;
    --white: #ffffff;
    --gray: #757575;
    --text: #4a4a4a;
    --text-dark: #2d2d2d;
    --danger: #eb7a77;
    /* Akane Red soft */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'VT323', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-weight: 700;
}

/* Authentication Pages */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    padding: 20px;
    background: transparent;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

.brand {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.brand h1 {
    font-size: 1.96rem;
    color: var(--primary-dark);
    margin: 0;
    text-shadow: 0 4px 15px rgba(245, 150, 170, 0.2);
    letter-spacing: 2px;
}

/* Logo Styles */
.main-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.main-logo {
    width: 100%;
    max-width: 175px;
    /* Large desktop size */
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(245, 150, 170, 0.3));
    transition: transform 0.3s ease;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .main-logo {
        max-width: 165px;
        /* Tablet size - smaller than desktop */
    }

    .container {
        padding: 0 15px;
    }

    .hero-text {
        padding: 25px 20px;
        margin-top: 10px;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 154px;
        /* Mobile size */
    }

    .login-page {
        padding: 10px;
    }

    .hero-text {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .hero-text h2 {
        font-size: 1.26rem;
    }

    .brand p {
        font-size: 1rem;
    }

    .form-box {
        padding: 20px;
    }

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

    .top-bar {
        font-size: 0.9rem;
    }
}

.brand-logo {
    max-width: 250px;
    width: 80%;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.hero-text {
    margin: 20px auto 0 auto;
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 150, 170, 0.1);
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    text-align: center;
}

.hero-text h2 {
    font-size: 1.75rem;
    margin: 0 0 15px 0;
    color: var(--primary-dark);
    font-weight: 800;
    text-shadow: none;
    -webkit-text-fill-color: initial;
    background: none;
}

.brand p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.hero-badges {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.auth-forms {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-box {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--primary-glow);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.form-box h2 {
    margin-top: 0;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.26rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'VT323', 'Courier New', monospace;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    width: 100%;
    font-family: 'VT323', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--dark);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn.primary:hover {
    background: linear-gradient(45deg, var(--primary), #eacda3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn.secondary:hover {
    background: rgba(245, 150, 170, 0.05);
    transform: translateY(-2px);
}

.btn.text-btn {
    background: transparent;
    color: var(--primary);
    padding: 5px 10px;
    font-size: 0.8rem;
    text-decoration: underline;
    width: auto;
}

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

.btn.danger:hover {
    background: #c0392b;
}

.btn.sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    width: auto;
}

.divider {
    display: none;
    /* Hidden on mobile by default */
}

/* Language Switcher */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lang-switch a {
    color: var(--white);
    text-decoration: none;
    margin: 0 8px;
    opacity: 0.7;
    font-weight: 600;
    transition: opacity 0.3s;
}

.lang-switch a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Alerts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    padding: 16px 24px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    margin-bottom: 15px;
    min-width: 300px;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast.success {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.toast.error {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Dashboard & Admin */
.dashboard-body {
    background: var(--light);
    color: var(--text-dark);
}

.navbar {
    background: var(--dark);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Removed sticky positioning */
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    font-family: 'Press Start 2P', 'VT323', monospace;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo {
    height: 40px;
    width: auto;
    image-rendering: pixelated;
}

.brand-name {
    font-size: 1.5rem;
}

.brand-suffix {
    margin-left: 5px;
    font-size: 1rem;
    opacity: 0.7;
    font-family: 'VT323', monospace;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.2rem;
    white-space: nowrap;
}

.nav-links span {
    opacity: 0.8;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.game-link {
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.nav-links a.game-link:hover {
    background: linear-gradient(135deg, #45a049, #1e88e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    color: #fff;
}

/* Navbar Responsiveness */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-suffix {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .brand-suffix {
        margin-left: 0;
    }

    .nav-links {
        gap: 10px 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

.section-title {
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.section-title h2,
.section-title h3 {
    margin: 0;
    color: var(--dark);
}

/* Upload & Gallery */
.upload-area {
    border: 2px dashed #ccc;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #fffdf5;
    transform: scale(1.01);
}

.upload-area h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.05rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
    /* Space for action bar */
}

.gallery-item {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 50%;
    aspect-ratio: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item:not(.upload-card)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    z-index: 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-item.selected {
    box-shadow: 0 0 0 4px var(--primary), 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    transform: scale(1.02);
}

.gallery-item.selected::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: checkPop 0.2s ease-out;
}

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.gallery-checkbox {
    display: none;
}

.delete-btn {
    position: absolute;
    bottom: 15%;
    right: 15%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    color: #e74c3c;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.delete-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.privacy-btn {
    position: absolute;
    bottom: 15%;
    left: 15%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    color: #95a5a6;
    /* Default gray/unlocked */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.privacy-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.privacy-btn.private {
    color: #e74c3c;
    /* Locked color */
    border-color: #e74c3c;
}

/* Redesigned Compact Action Bar */
.action-bar.compact {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.action-bar.compact .price-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.price-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 1;
    color: var(--primary);
}

.compact-btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    white-space: nowrap;
    width: auto;
    margin: 0;
}

/* Cropper */
.app-cropper-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Semi-transparent for blur */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cropper-content {
    background-color: #ffffff !important;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2001;
    opacity: 1 !important;
}

.crop-container {
    max-height: 60vh;
    overflow: hidden;
    background: #333;
    border-radius: 8px;
    margin-bottom: 20px;
}

.crop-container img {
    max-width: 100%;
    display: block;
}

/* ADMIN GRID (New Responsive Design) */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.order-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.card-body {
    margin-bottom: 20px;
    flex-grow: 1;
}

.user-info {
    margin-bottom: 10px;
}

.user-meta {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.order-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 10px;
}

.card-actions-area {
    background: #f9f9f9;
    margin: -20px -20px -20px -20px;
    padding: 20px;
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
    margin-top: auto;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.status-form select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
}

.btn-group {
    display: flex;
    gap: 10px;
}


.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.pending {
    background: #f1c40f;
    color: #fff;
}

.badge.processing {
    background: #3498db;
    color: #fff;
}

.badge.completed {
    background: #2ecc71;
    color: #fff;
}

.order-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.order-bulk-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.admin-card.bulk-selected {
    box-shadow: 0 0 0 3px var(--primary);
}

.bulk-actions-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 95%;
}

.bulk-actions-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.bulk-actions-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.bulk-count-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary);
    cursor: default;
}

.bulk-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'VT323', 'Courier New', monospace;
}

.bulk-btn.status-pending {
    background: #f1c40f;
    color: #333;
}

.bulk-btn.status-processing {
    background: #3498db;
    color: white;
}

.bulk-btn.status-completed {
    background: #2ecc71;
    color: white;
}

.bulk-btn.merge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.bulk-btn.delete {
    background: #e74c3c;
    color: white;
}

.bulk-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Media Queries */
@media (min-width: 768px) {
    .divider {
        display: block;
        width: 2px;
        background: rgba(255, 255, 255, 0.2);
        height: 400px;
        align-self: center;
    }

    .brand h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .lang-switch {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        text-align: right;

    }

    .brand h1 {
        font-size: 1.6rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .auth-forms {
        flex-direction: column;
        align-items: center;
    }

    .form-box {
        width: 100%;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links a,
    .nav-links span {
        margin: 0 10px;
        font-size: 0.85rem;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    /* Cropper Full Width on Mobile */
    .app-cropper-modal {
        padding: 0;
        align-items: flex-end;
        /* Sheet style on mobile or just centered? user wanted full width */
        align-items: center;
    }

    .cropper-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding: 15px;
        margin: 0;
        justify-content: center;
    }

    .crop-container {
        max-height: none;
        /* Let it grow */
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: black;
    }

    /* Action Bar Mobile Overrides */
    .action-bar.compact {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        left: 0;
        transform: none;
        border-radius: 20px 20px 0 0;
        padding: 15px 20px;
        flex-direction: row;
        /* Keep horizontal but improved */
        justify-content: space-between;
        align-items: center;
        background: rgba(30, 30, 30, 0.98);
        /* Less transparent on mobile */
    }

    .action-bar.compact .price-info {
        margin-right: 10px;
    }

    .price-row {
        font-size: 0.75rem;
    }

    .price-row.total {
        font-size: 1rem;
        flex-direction: column;
        /* Stack total label and value if needed, or keep row */
        align-items: flex-start;
        gap: 2px;
    }

    .price-row.total .value {
        font-size: 1.2rem;
    }

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

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 80px;
}

.gallery-section {
    background: transparent;
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0 50px;
    flex-wrap: wrap;
}

.action-card {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px dashed rgba(245, 150, 170, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(245, 150, 170, 0.05);
}

.action-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    background: white;
    box-shadow: 0 15px 45px rgba(245, 150, 170, 0.15);
}

.action-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    line-height: 1;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.action-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .dashboard-actions {
        gap: 20px;
        margin-bottom: 30px;
    }

    .action-card {
        width: 150px;
        height: 150px;
    }

    .action-icon {
        font-size: 2rem;
    }

    .action-text {
        font-size: 0.55rem;
    }
}

/* Collection Styles */
.collection-header {
    margin: 0;
    padding: 0;
    border: none;
}

.collection-header h2 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.collection-header p {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.collection-category-separator {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0 10px;
    pointer-events: none;
}

.collection-category-separator span {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--primary-dark);
    white-space: nowrap;
    background: transparent;
    padding-right: 10px;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 150, 170, 0.4) 0%, transparent 100%);
}

.item-source-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 5;
    border: 1px solid rgba(245, 150, 170, 0.2);
}

.catalog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.catalog-modal-content {
    background: #fff;
    width: 95%;
    max-width: 900px;
    height: 85%;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.catalog-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    color: var(--white);
}

.catalog-modal-header h3 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--primary);
}

.catalog-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
}

.catalog-modal-close:hover {
    opacity: 1;
}

.catalog-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
}

.catalog-grid {
    display: block;
}

.catalog-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    /* overflow: visible to let button show */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.catalog-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.catalog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.catalog-add-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.91rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.catalog-add-btn:hover {
    transform: scale(1.15);
    background: #e6c545;
}

.catalog-add-btn.added {
    background: #2ecc71;
    color: white;
}

.catalog-add-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.catalog-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.catalog-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    background: white;
}

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

.pagination-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary);
    color: var(--dark);
}

@media (max-width: 600px) {
    .catalog-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
}

/* Badge Select Styles */
.badge-select {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-align: center;
    color: white;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    text-align-last: center;
    /* Center text in some browsers */
}

.badge-select.pending {
    background: #f1c40f;
}

.badge-select.processing {
    background: #3498db;
}

.badge-select.completed {
    background: #2ecc71;
}

.badge-select option {
    color: #000;
    background: #fff;
}

/* Chat Styles */
.chat-container {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    height: auto;
    margin-bottom: 20px;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fdfdfd;
    max-height: 400px;
}

/* Admin Table Styles */
.admin-table-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 30px;
    width: 100%;
}

.admin-table {
    width: 100%;
    /* No min-width, allow the table to fit the screen */
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;
}

/* Ensure empty space is absorbed by the badges column instead of creating a gap at the end */
.admin-table th.col-badges,
.admin-table td.col-badges {
    width: 100%;
    max-width: 0;
    /* Crucial for table cell overflow to work properly */
}

.admin-table th {
    background: #f8f9fa;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #eee;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #fcfcfc;
}

.admin-table tr.bulk-selected {
    background: #fff8e1 !important;
}

.table-order-id {
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline hidden;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Space between ID and Dot */
}

.table-order-id:hover {
    text-decoration: underline;
}

.unread-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff4d4d;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
    animation: pulseNotif 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseNotif {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

.table-badges-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 250px;
    min-width: 0;
}

.table-badges-preview {
    display: flex;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
    min-width: 0;
    /* Allow inner container to compress fully */
}

.badges-more-count {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
    flex-shrink: 0;
}

.table-mini-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.table-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.table-action-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-action-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.table-action-btn.delete:hover {
    color: var(--danger);
}

/* Responsive Table Features */
.row-options-context {
    position: relative;
    display: flex;
    align-items: center;
}

.context-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
    padding: 8px 0;
    margin-top: 5px;
    border: 1px solid #eee;
}

.context-menu.active {
    display: block;
    animation: slideInUp 0.2s ease-out;
}

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

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

.context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    color: var(--dark);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.context-item:hover {
    background: #f4f7ff;
    color: var(--primary);
}

.context-item.delete-item {
    color: #ff4757;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    font-weight: 500;
}

.context-item.delete-item:hover {
    background: #fff5f5;
    color: #ff4757;
}

.context-item.info-item {
    flex-direction: column;
    align-items: flex-start;
    cursor: default;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.context-item.info-item:hover {
    background: #fafafa;
    color: inherit;
}

.info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    line-height: 1.3;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .hide-mobile {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* Admin Order Modal */
.admin-order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-order-modal.active {
    display: flex;
}

.admin-order-modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-order-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fefefe;
}

.admin-order-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark);
}

.admin-order-modal-close {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.admin-order-modal-close:hover {
    background: var(--danger);
    color: white;
}

.admin-order-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

/* Update admin-card for modal view */
.admin-order-modal .admin-card {
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.chat-messages:empty {
    display: none;
    padding: 0;
}

.chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    position: relative;
    word-wrap: break-word;
}

.chat-message.me {
    align-self: flex-end;
    background: var(--primary);
    color: var(--dark);
    border-bottom-right-radius: 2px;
}

.chat-message.other {
    align-self: flex-start;
    background: #e0e0e0;
    color: var(--text-dark);
    border-bottom-left-radius: 2px;
}

.chat-message.internal {
    border: 2px solid #e74c3c;
    /* Red border for internal messages */
}

.chat-message.internal::before {
    content: 'INTERNAL';
    display: block;
    font-size: 0.6rem;
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 2px;
}

.message-meta {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
    border-radius: 0 0 8px 8px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    height: 40px;
    /* Base height */
    max-height: 100px;
    font-family: inherit;
    transition: border-color 0.3s;
    overflow: hidden;
    /* Hide scrollbar initially */
}

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

.chat-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.send-chat-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.send-chat-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.internal-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.internal-checkbox-wrapper:hover {
    transform: scale(1.1);
}

.icon-state {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Password Toggle Icon */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #333;
    /* Dark color for visibility on white background */
    opacity: 0.6;
    transition: opacity 0.3s;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--primary);
}

/* Cropper Circular Overlay */
.cropper-face.cropper-move {
    background-color: transparent !important;
}

.cropper-view-box {
    border-radius: 50%;
    outline: 1px solid white;
}

.cropper-face.cropper-move::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    box-sizing: border-box;
}

/* AI Generator Styles */
.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.ai-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ai-input-group {
    margin: 20px 0;
    text-align: left;
}

.ai-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.ai-textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
    /* Centering logic when inside a container */
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Order Confirmation Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.order-modal-content {
    background: #ffffff;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.order-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    color: var(--white);
}

.order-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.order-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
}

.order-modal-close:hover {
    opacity: 1;
}

.order-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f9f9f9;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-item-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

.order-item-price {
    font-size: 0.9rem;
    color: var(--gray);
}

.order-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.qty-input {
    width: 60px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'VT323', 'Courier New', monospace;
}

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

.order-item-total {
    min-width: 100px;
    text-align: right;
}

.order-item-total-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
}

.order-item-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.order-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.order-total-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.order-total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.order-total-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.order-modal-actions {
    display: flex;
    gap: 15px;
}

.order-modal-actions .btn {
    width: auto;
    padding: 12px 30px;
}

/* Order Modal Responsive */
@media (max-width: 767px) {
    .order-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .order-modal-header {
        padding: 15px 20px;
    }

    .order-modal-header h3 {
        font-size: 1.2rem;
    }

    .order-modal-body {
        padding: 15px;
    }

    .order-item {
        flex-wrap: wrap;
        padding: 15px;
    }

    .order-item-image {
        width: 60px;
        height: 60px;
    }

    .order-item-info {
        flex: 1;
        min-width: 120px;
    }

    .order-item-quantity {
        width: 100%;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    .order-item-total {
        width: 100%;
        text-align: center;
        padding-top: 10px;
    }

    .order-modal-footer {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .order-total-row {
        width: 100%;
        justify-content: center;
    }

    .order-modal-actions {
        width: 100%;
    }

    .order-modal-actions .btn {
        flex: 1;
        padding: 15px 20px;
    }
}

/* Notifications */
.nav-notification {
    position: relative;
}

.nav-notification .bell-icon {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.nav-notification .bell-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.nav-notification .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark);
    display: none;
    pointer-events: none;
    /* Hidden by default */
}

.nav-notification.new .badge {
    display: flex;
}

.nav-notification.new .bell-icon {
    animation: bellShake 1s infinite;
}

@keyframes bellShake {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

/* Notification Dropdown */
.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}

.notif-dropdown.visible {
    display: flex;
    animation: fadeInDown 0.3s ease-out;
}

.notif-header {
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333333 !important;
    /* Force dark color even in navbar */
    display: block;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #fffdf5;
    color: var(--primary) !important;
}

.notif-item.unread {
    background: #fdfaf0;
    border-left: 3px solid var(--primary);
}

.notif-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #888888 !important;
}

.notif-author {
    font-weight: 700;
    color: #121212 !important;
}

.notif-text {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333333 !important;
}

.notif-order-ref {
    font-size: 0.75rem;
    color: var(--primary) !important;
    font-weight: 600;
    margin-top: 4px;
}

.notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--gray);
    font-style: italic;
}

@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-height: 80vh;
    }
}

/* Inspiration Gallery */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.inspiration-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
}

.inspiration-item:hover {
    transform: scale(1.2) rotate(5deg);
    border-color: var(--primary);
    z-index: 2;
}

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

.show-more-container {
    margin-top: 15px;
}

.btn.inspiration-btn {
    background: var(--white);
    color: var(--dark) !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'VT323', 'Courier New', monospace;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.btn.inspiration-btn:hover {
    background: var(--primary);
    color: var(--dark) !important;
    border-color: var(--primary);
}

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

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

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 0 5px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-icon-link:hover {
    transform: rotate(45deg);
    color: var(--primary);
}

/* Auth Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.hero-text h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    line-height: 1.4;
    text-shadow: 3px 3px 0px rgba(245, 150, 170, 0.3);
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px 15px;
        flex-direction: row;
        /* Keep row for auth | lang */
        gap: 10px;
        font-size: 0.8rem;
    }
}

.login-page .container {
    padding-top: 100px;
}

.auth-links,
.lang-switch {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
}

.auth-links a,
.lang-switch a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 12px;
}

.auth-links a:hover,
.lang-switch a:hover {
    color: var(--primary);
}

/* Modals Redesign */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animations moved up or merged */

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(0);
    animation: modalSlideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

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

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #121212;
    margin: 0;
    letter-spacing: -0.5px;
}

.close-modal {
    font-size: 1.8rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.close-modal:hover {
    color: #121212;
    transform: rotate(90deg);
}

.modal .input-group {
    margin-bottom: 16px;
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #121212;
    transition: all 0.2s;
    outline: none;
}

.modal input::placeholder,
.modal textarea::placeholder {
    color: #757575;
}

.modal input:focus,
.modal textarea:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.modal textarea {
    height: 100px;
    resize: none;
}

.w-100 {
    width: 100% !important;
}

.modal .btn {
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 35px 24px;
        border-radius: 24px;
    }

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

@media (max-width: 600px) {
    .top-bar {
        padding: 15px 15px;
    }

    .auth-links a,
    .lang-switch a {
        padding: 5px 6px;
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 40px 20px;
        border-radius: 16px;
    }

    .login-page .container {
        padding-top: 80px;
    }
}

/* ===== Site Footer with Social Links ===== */
.site-footer {
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.4) 0%, rgba(245, 150, 170, 0.3) 100%);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(245, 150, 170, 0.3);
    padding: 30px 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.login-page .site-footer {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.login-page {
    padding: 0 !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-family: 'VT323', 'Courier New', monospace;
    color: var(--primary-dark);
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #555;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Telegram */
.social-link.telegram:hover {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: #fff;
    border-color: #0088cc;
}

/* Instagram */
.social-link.instagram:hover {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
    color: #fff;
    border-color: #E1306C;
}

/* TikTok */
.social-link.tiktok:hover {
    background: linear-gradient(135deg, #000000 0%, #25F4EE 50%, #FE2C55 100%);
    color: #fff;
    border-color: #000;
}

.footer-text {
    font-family: 'VT323', 'Courier New', monospace;
    color: var(--primary-dark);
    font-size: 1rem;
    opacity: 0.8;
}

.footer-text p {
    margin: 0;
}

@media (max-width: 480px) {
    .site-footer {
        padding: 25px 15px;
        margin-top: 30px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-text {
        font-size: 0.9rem;
    }
}

/* ===== Terms Modal ===== */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.terms-modal.active {
    display: flex;
}

.terms-modal-content {
    background: linear-gradient(135deg, #fff 0%, #fef9fa 100%);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-light);
    overflow: hidden;
}

.terms-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-modal-header h3 {
    margin: 0;
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.terms-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.terms-modal-body h4 {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 0.75rem;
    color: var(--primary-dark);
    margin: 20px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.terms-modal-body h4:first-child {
    margin-top: 0;
}

.terms-modal-body p {
    margin-bottom: 15px;
}

.terms-modal-body ul {
    margin: 10px 0 15px 20px;
}

.terms-modal-body li {
    margin-bottom: 8px;
}

.terms-modal-footer {
    padding: 20px 25px;
    background: rgba(245, 150, 170, 0.1);
    border-top: 1px solid rgba(245, 150, 170, 0.2);
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.terms-btn {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.1rem;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.terms-btn.agree {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.terms-btn.agree:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.terms-btn.disagree {
    background: rgba(200, 200, 200, 0.3);
    color: #666;
    border: 1px solid #ddd;
}

.terms-btn.disagree:hover {
    background: rgba(220, 100, 100, 0.2);
    color: #c44;
    border-color: #c44;
}

@media (max-width: 600px) {
    .terms-modal-content {
        max-height: 90vh;
        border-radius: 15px;
    }

    .terms-modal-header {
        padding: 15px 20px;
    }

    .terms-modal-header h3 {
        font-size: 0.75rem;
    }

    .terms-modal-body {
        padding: 20px;
        font-size: 1rem;
    }

    .terms-modal-body h4 {
        font-size: 0.65rem;
    }

    .terms-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .terms-btn {
        width: 100%;
        text-align: center;
    }
}

/* Catalog Accordion Styles */
.catalog-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #eef2f7;
}

.accordion-header .count-badge {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #4a5568;
}

.accordion-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

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

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.catalog-load-more {
    width: 100%;
    padding: 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.catalog-load-more:hover {
    background: #e2e8f0;
}

.catalog-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}