/* MIMOSA Admin - Mobile First */
:root {
    --primary: #9B2D6B;
    --primary-dark: #6B1D4B;
    --secondary: #6B3D7B;
    --accent: #B76E79;
    --bg: #F8F5F7;
    --white: #FFFFFF;
    --sidebar-bg: #1A1418;
    --sidebar-text: rgba(255,255,255,0.7);
    --text-dark: #1A1A1A;
    --text-medium: #555;
    --text-light: #999;
    --border: #E8D0E0;
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
}

/* =================== LOGIN =================== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9B2D6B 0%, #6B3D7B 50%, #4B2D5B 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--border);
}

.login-card h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 15px;
    padding: 10px;
    background: #FDE8E8;
    border-radius: 8px;
}

/* =================== ADMIN LAYOUT =================== */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* =================== SIDEBAR =================== */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 2px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.nav-item.active {
    background: rgba(155,45,107,0.2);
    color: var(--white);
    border-left-color: var(--accent);
}

.nav-item svg { flex-shrink: 0; }

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: rgba(231,76,60,0.15);
    border: none;
    border-radius: 8px;
    color: #E74C3C;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: background 0.2s;
}

.btn-logout:hover { background: rgba(231,76,60,0.25); }

/* =================== MAIN CONTENT =================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

.topbar h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

.btn-site {
    margin-left: auto;
    padding: 8px 16px;
    background: var(--bg);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

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

.content-area {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

/* =================== SECTIONS =================== */
.section { display: none; }
.section.active { display: block; }

/* =================== STATS =================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* =================== DASHBOARD =================== */
.dashboard-actions { margin-bottom: 30px; }

.dashboard-actions h3,
.recent-clients h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.action-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-card svg { stroke: var(--primary); margin-bottom: 8px; }
.action-card span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-dark); }

.recent-client-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.recent-client-item .name { font-weight: 600; font-size: 0.9rem; }
.recent-client-item .stamps { color: var(--primary); font-size: 0.85rem; }

/* =================== FORMS =================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155,45,107,0.1);
}

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

/* =================== BUTTONS =================== */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(155,45,107,0.3);
}

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

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-danger:hover { opacity: 0.8; }

.btn-edit {
    background: var(--warning);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* =================== SEARCH =================== */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

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

/* =================== SECTION TOOLBAR =================== */
.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* =================== CATEGORY TABS =================== */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 25px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-medium);
}

.cat-tab.active,
.cat-tab:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* =================== SERVICES TABLE =================== */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 10px;
}

.service-info { flex: 1; min-width: 200px; }
.service-info .svc-name { font-weight: 600; font-size: 0.95rem; }
.service-info .svc-detail { font-size: 0.8rem; color: var(--text-light); }
.service-price { font-weight: 700; color: var(--primary); font-size: 1rem; white-space: nowrap; }
.service-actions { display: flex; gap: 8px; }

/* Hidden services */
.service-item.service-hidden {
    opacity: 0.5;
    border-left: 3px solid var(--text-light);
}

.svc-badge-hidden {
    display: inline-block;
    padding: 2px 8px;
    background: #E8E8E8;
    color: #888;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle visibility button */
.btn-toggle {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-toggle-on {
    background: #D4EDDA;
    color: #27AE60;
}

.btn-toggle-on:hover {
    background: #C3E6CB;
}

.btn-toggle-off {
    background: #F8D7DA;
    color: #E74C3C;
}

.btn-toggle-off:hover {
    background: #F5C6CB;
}

/* =================== CATEGORIES MANAGEMENT =================== */
.category-management {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

.category-management h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-item .cat-name { font-weight: 600; }

.add-category-row {
    display: flex;
    gap: 10px;
}

.add-category-row input {
    flex: 1;
    padding: 10px 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
}

/* =================== LOYALTY =================== */
.loyalty-search { margin-bottom: 30px; }
.loyalty-search h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

#loyalty-search-results .search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

#loyalty-search-results .search-result-item:hover {
    border-left: 3px solid var(--primary);
    background: #FDF5F8;
}

.loyalty-client-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.client-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.client-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
}

.badge {
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
}

.stamps-visual {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.stamp-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.stamp-circle.filled {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    color: var(--white);
}

.stamp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-stamp {
    padding: 12px 24px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-stamp:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(39,174,96,0.3); }

.btn-reward {
    padding: 12px 24px;
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reward:hover { transform: translateY(-1px); }

.loyalty-history {
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 15px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

.history-item .history-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.history-item .history-icon.stamp-icon {
    background: rgba(39,174,96,0.1);
    color: var(--success);
}

.history-item .history-icon.reward-icon {
    background: rgba(243,156,18,0.1);
    color: var(--warning);
}

.history-item .history-date { color: var(--text-light); font-size: 0.8rem; margin-left: auto; }

.loyalty-config-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.loyalty-config-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.config-form { max-width: 400px; }

/* =================== LOYALTY CARD PREVIEW =================== */
.admin-card-preview {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 25px;
}

.preview-loyalty-card {
    width: 380px;
    max-width: 100%;
    height: 230px;
    background: linear-gradient(135deg, #1A1418 0%, #2D1F28 40%, #1A1418 100%);
    border-radius: 16px;
    position: relative;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.35),
        0 0 0 1px rgba(183,110,121,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    transform: rotateY(-3deg) rotateX(3deg);
    transition: transform 0.5s ease;
}

.preview-loyalty-card:hover {
    transform: rotateY(0) rotateX(0);
}

.plc-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 55%, transparent 70%);
    animation: plcShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes plcShine {
    0%, 100% { transform: translate(-30%, -30%); }
    50% { transform: translate(10%, 10%); }
}

.plc-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(183,110,121,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.plc-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.plc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plc-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(183,110,121,0.4);
}

.plc-brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 3px;
}

.plc-brand-type {
    font-size: 9px;
    color: #B76E79;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.plc-chip {
    width: 40px;
    height: 30px;
}

.plc-chip svg { width: 100%; height: 100%; }

.plc-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}

.plc-stamps-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.plc-stamp {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(183,110,121,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.plc-stamp.filled {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--accent);
    color: #fff;
    font-size: 9px;
}

.plc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.plc-label {
    font-size: 8px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.plc-member {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
}

.plc-points-box {
    text-align: right;
}

.plc-points-val {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    color: #B76E79;
    line-height: 1;
}

.plc-points-lbl {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Card share / QR section */
.card-share-section {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.card-share-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.share-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.card-link-input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-medium);
    background: var(--white);
}

.share-qr {
    display: flex;
    justify-content: center;
}

.share-qr canvas,
.share-qr img {
    border-radius: 8px;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .preview-loyalty-card {
        width: 100%;
        height: 200px;
        transform: none;
    }
    .preview-loyalty-card:hover { transform: none; }
    .plc-content { padding: 18px 20px; }
    .plc-logo { width: 35px; height: 35px; }
    .plc-brand-name { font-size: 17px; letter-spacing: 2px; }
    .plc-stamp { width: 20px; height: 20px; font-size: 8px; }
    .plc-member { font-size: 11px; }
    .plc-points-val { font-size: 24px; }
    .share-link-row { flex-direction: column; }
}

/* =================== CLIENTS =================== */
.clients-grid {
    display: grid;
    gap: 12px;
}

.client-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 10px;
}

.client-info .client-name { font-weight: 600; font-size: 1rem; }
.client-info .client-contact { font-size: 0.85rem; color: var(--text-light); }
.client-meta { display: flex; align-items: center; gap: 15px; }
.client-meta .stamps-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.client-meta .visits-badge {
    font-size: 0.85rem;
    color: var(--text-light);
}
.client-actions { display: flex; gap: 8px; }

/* =================== GALLERY =================== */
.upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.upload-form input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
}

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

.gallery-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

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

.gallery-card .gallery-card-info {
    padding: 10px;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.gallery-card .gallery-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.gallery-card .gallery-card-actions button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-card:hover .gallery-card-actions button { opacity: 1; }

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

/* =================== HOURS =================== */
.hours-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hour-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.hour-row .day-name {
    font-weight: 600;
    min-width: 100px;
    font-size: 0.95rem;
}

.hour-row input[type="time"] {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
}

.hour-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.hour-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.hour-row.closed { opacity: 0.5; }

/* =================== SETTINGS =================== */
.settings-form {
    max-width: 500px;
}

.msg {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.msg.success { background: #D4EDDA; color: #155724; }
.msg.error { background: #F8D7DA; color: #721C24; }

/* =================== MODAL =================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}

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

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

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

/* =================== TOAST =================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

/* =================== MOBILE =================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .sidebar-close { display: block; }

    .main-content { margin-left: 0; }

    .hamburger { display: flex; }

    .content-area { padding: 15px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-card .stat-value { font-size: 1.5rem; }

    .actions-grid { grid-template-columns: repeat(2, 1fr); }

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

    .section-toolbar { flex-direction: column; align-items: stretch; }

    .category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }

    .service-item { flex-direction: column; align-items: flex-start; }
    .service-actions { width: 100%; justify-content: flex-end; }

    .client-card { flex-direction: column; align-items: flex-start; }
    .client-actions { width: 100%; justify-content: flex-end; }

    .admin-gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .hour-row { flex-direction: column; align-items: flex-start; }

    .upload-form { flex-direction: column; }
    .upload-form input[type="text"] { width: 100%; }

    .search-bar { flex-direction: column; }

    .stamp-circle { width: 38px; height: 38px; font-size: 0.7rem; }

    .modal-content { padding: 20px; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; position: absolute; bottom: 0; max-height: 85vh; }

    .toast { bottom: 15px; right: 15px; left: 15px; text-align: center; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .actions-grid { grid-template-columns: 1fr; }
    .stamp-actions { flex-direction: column; }
}
