/* بارگذاری فونت yekan از پوشه assets/fonts */
@font-face {
  font-family: 'Yekan';
  src: url('/assets/fonts/yekan.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #C13584;
    --bg: #FAFAFA;
    --bg-white: #FFFFFF;
    --text: #262626;
    --text-light: #8E8E8E;
    --border: #DBDBDB;
    --border-light: #EFEFEF;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --max-width: 800px;
}


/* ===== INSTASHOP PROFILE CSS ===== */
:root {
    --ig-bg: #FFFFFF;
    --ig-bg-secondary: #FAFAFA;
    --ig-border: #DBDBDB;
    --ig-text: #262626;
    --ig-text-secondary: #8E8E8E;
    --ig-link: #00376B;
    --ig-primary: #E1306C;
    --ig-button-bg: #EFEFEF;
    --ig-button-text: #262626;
    --ig-blue: #0095F6;
    --ig-danger: #ED4956;
    --ig-success: #10B981;
    --ig-warning: #F59E0B;
}


body {
    font-family: 'Yekan', system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
    background: var(--ig-bg);
    color: var(--ig-text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
    direction: rtl;
}

/* ===== HEADER ===== */
.ig-header {
    max-width: var(--max-width);
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--ig-bg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.ig-header-left, .ig-header-right { display: flex; align-items: center; gap: 16px; }

.ig-header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ig-text);
}

.ig-header-btn svg { 
    width: 30px;
    height: 30px;
    stroke: var(--ig-text);
    fill: none;
    stroke-width: 2;}

.ig-username-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ig-username-dropdown svg { width: 16px; height: 16px; }

/* ===== PROFILE SECTION ===== */
.ig-profile-section { padding: 60px 16px 0; max-width: 800px; margin: 0 auto; }

.ig-profile-top { display: flex; align-items: center; gap: 28px; margin-bottom: 20px; }

.ig-avatar-container { position: relative; flex-shrink: 0; }

.ig-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    background: var(--ig-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
}

.ig-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ig-avatar-add {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--ig-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 2px solid white;
    cursor: pointer;
}

.ig-stats { display: flex; gap: 24px; flex: 1; justify-content: space-around; }

.ig-stat { text-align: center; cursor: pointer; }

.ig-stat-value { font-size: 16px; font-weight: 700; display: block; line-height: 1.2; }

.ig-stat-label { font-size: 13px; color: var(--ig-text); font-weight: 400; }

/* ===== BIO ===== */
.ig-bio-section { margin-bottom: 16px; }

.ig-display-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }

.ig-bio-text { font-size: 14px; line-height: 1.4; color: var(--ig-text); white-space: pre-wrap; }

/* ===== ACTION BUTTONS ===== */
.ig-action-buttons { display: flex; gap: 8px; margin-bottom: 20px; }

.ig-btn {
    flex: 1;
    padding: 10px 5px;
    border-radius: 8px;
    border: 0px solid var(--ig-border);
    background: var(--border-light);
    color: var(--ig-button-text);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: inherit;
}

.ig-btn:hover { background: var(--ig-border) ; }

.ig-btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #C13584 100%); color: white; border-color: var(--ig-primary); }
.ig-btn-primary:hover { background: linear-gradient(175deg, var(--primary) 0%, #C13584 100%); }

.ig-btn-danger { color: var(--ig-danger); border-color: var(--ig-danger); }

/* ===== ADMIN CREATE BUTTON (+) ===== */
.ig-create-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: var(--ig-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 90;
    transition: transform 0.2s;
}

.ig-create-btn:hover { transform: scale(1.05); }
.ig-create-btn:active { transform: scale(0.95); }

/* ===== CREATE MENU MODAL (Bottom Sheet) ===== */
.ig-create-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}

.ig-create-modal.active { display: flex; }

.ig-create-sheet {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 20px 20px 0 0;
    padding: 12px 0 180px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.ig-create-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--ig-border);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.ig-create-title { text-align: center; font-size: 16px; font-weight: 600; margin-bottom: 8px; }

.ig-create-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--ig-text);
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    text-align: right;
}

.ig-create-option:hover { background: var(--ig-bg-secondary); }

.ig-create-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-create-option-icon svg { width: 24px; height: 24px; stroke: var(--ig-text); fill: none; stroke-width: 1.5; }

.ig-create-option-text { font-size: 15px; font-weight: 400; }

/* ===== HAMBURGER MENU (Side Panel) ===== */
.ig-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.ig-menu-modal.active { display: block; }

.ig-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    padding: 20px 0;
    animation: slideLeft 0.3s ease;
    overflow-y: auto;
}

@keyframes slideLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }

.ig-menu-header { padding: 0 20px 20px; border-bottom: 1px solid var(--ig-border); margin-bottom: 12px; }

.ig-menu-header-title { font-size: 18px; font-weight: 700; }

.ig-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--ig-text);
    font-size: 15px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    text-align: right;
}

.ig-menu-item:hover { background: var(--ig-bg-secondary); }

.ig-menu-item svg { width: 22px; height: 22px; stroke: var(--ig-text); fill: none; stroke-width: 2; flex-shrink: 0; }

.ig-menu-divider { height: 1px; background: var(--ig-border); margin: 8px 16px; }

.ig-menu-badge {
    margin-right: auto;
    background: var(--ig-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ===== ORDERS LIST (Graphic Style) ===== */
.ig-orders-section { border-top: 1px solid var(--ig-border); padding-top: 16px; }

.ig-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 12px;
}

.ig-orders-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.ig-orders-count { font-size: 13px; color: var(--ig-text-secondary); }

.ig-orders-list { display: flex; flex-direction: column; gap: 12px; }

.ig-order-item {
    background: var(--ig-bg-secondary);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 0px solid var(--ig-border);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--ig-text);
}

.ig-order-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.ig-order-item-header { display: flex; justify-content: space-between; align-items: center; }

.ig-order-item-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--ig-text-secondary);
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ig-order-item-code::before { content: "ðŸ§¾"; }

.ig-order-status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; color: white; }

.ig-order-item-body { display: flex; justify-content: space-between; align-items: center; }

.ig-order-item-info { display: flex; flex-direction: column; gap: 4px; }

.ig-order-item-amount { font-size: 18px; font-weight: 700; color: var(--ig-text); direction: ltr; }

.ig-order-item-meta { font-size: 12px; color: var(--ig-text-secondary); }

.ig-order-item-date { font-size: 12px; color: var(--ig-text-secondary); display: flex; align-items: center; gap: 4px; }

.ig-order-item-footer { display: flex; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--ig-border); }

.ig-order-item-action {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid var(--ig-border);
    background: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--ig-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ig-order-item-action:hover { background: var(--ig-bg-secondary); }

.ig-order-empty { text-align: center; padding: 60px 20px; color: var(--ig-text-secondary); }

.ig-order-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ===== ADMIN TABS ===== */
.ig-admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--ig-border);
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ig-admin-tabs::-webkit-scrollbar { display: none; }

.ig-admin-tab {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ig-text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.ig-admin-tab.active { color: var(--ig-text); border-bottom-color: var(--ig-text); background: linear-gradient(0deg, var(--ig-border) 0%, #fff 50%); }

.ig-admin-tab:hover { color: var(--ig-text); }

.ig-admin-content { display: none; }

.ig-admin-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== ADMIN CARDS & TABLES ===== */
.ig-admin-card {
    background: var(--ig-bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 0px solid var(--ig-border);
}

.ig-admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

.ig-admin-card-title { font-size: 14px; font-weight: 700; }

.ig-admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.ig-admin-table th {
    text-align: right;
    padding: 10px 8px;
    border-bottom: 1px solid var(--ig-border);
    color: var(--ig-text-secondary);
    font-weight: 600;
    font-size: 12px;
}

.ig-admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--ig-border); vertical-align: middle; }

.ig-admin-table tr:last-child td { border-bottom: none; }

.ig-admin-product-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 0px solid var(--ig-border); }

.ig-admin-status { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

.ig-admin-status.active { background: #D1FAE5; color: #059669; }
.ig-admin-status.inactive { background: #FEE2E2; color: #DC2626; }
.ig-admin-status.pending { background: #FEF3C7; color: #D97706; }
.ig-admin-status.paid { background: #D1FAE5; color: #059669; }
.ig-admin-status.processing { background: #DBEAFE; color: #2563EB; }
.ig-admin-status.cancelled { background: #FEE2E2; color: #DC2626; }
.ig-admin-status.info { background: #DBEAFE; color: #2563EB; }
.ig-admin-status.warning { background: #FEF3C7; color: #D97706; }

.ig-admin-actions { display: flex; gap: 6px; }

.ig-admin-btn-sm {
    padding: 6px 10px;
    border-radius: 6px;
    border: 0px solid var(--ig-border);
    background: white;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.ig-admin-btn-sm:hover { background: var(--ig-bg-secondary); }

.ig-admin-btn-sm.danger { color: var(--ig-danger); border-color: var(--ig-danger); }
.ig-admin-btn-sm.danger:hover { background: #FEE2E2; }

/* ===== STATS GRID ===== */
.ig-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }

.ig-stat-card {
    background: var(--ig-bg-secondary);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid var(--ig-border);
}

.ig-stat-card-icon { font-size: 24px; margin-bottom: 8px; }

.ig-stat-card-value { font-size: 20px; font-weight: 700; margin-bottom: 4px; }

.ig-stat-card-label { font-size: 12px; color: var(--ig-text-secondary); }

/* ===== STORY CARDS ===== */
.ig-stories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.ig-story-card {
    background: var(--ig-bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--ig-border);
}

.ig-story-card-media {
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, var(--ig-primary), #F472B6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ig-story-card-media img { width: 100%; height: 100%; object-fit: cover; }

.ig-story-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.ig-story-card-body { padding: 12px; }

.ig-story-card-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.ig-story-card-meta { font-size: 11px; color: var(--ig-text-secondary); margin-bottom: 8px; }

.ig-story-card-actions { display: flex; gap: 6px; }

/* ===== MODULE CARDS ===== */
.ig-modules-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.ig-module-card {
    background: var(--ig-bg-secondary);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid var(--ig-border);
}

.ig-module-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.ig-module-card-title { font-size: 15px; font-weight: 700; }

.ig-module-card-desc { font-size: 13px; color: var(--ig-text-secondary); margin-bottom: 12px; }

.ig-module-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ig-text-secondary); }

/* ===== TOGGLE SWITCH ===== */
.ig-toggle { position: relative; width: 44px; height: 24px; display: inline-block; }

.ig-toggle input { opacity: 0; width: 0; height: 0; }

.ig-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ig-border);
    border-radius: 24px;
    transition: 0.3s;
}

.ig-toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.ig-toggle input:checked + .ig-toggle-slider { background: var(--ig-blue); }

.ig-toggle input:checked + .ig-toggle-slider::before { transform: translateX(20px); }

.ig-toggle input:disabled + .ig-toggle-slider { opacity: 0.5; cursor: not-allowed; }

/* ===== MODALS ===== */
.ig-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ig-modal-overlay.active { display: flex; }

.ig-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.ig-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ig-border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.ig-modal-title { font-size: 16px; font-weight: 700; }

.ig-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--ig-text);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ig-modal-close:hover { background: var(--ig-bg-secondary); }

.ig-modal-body { padding: 20px; }

/* ===== FORM ELEMENTS ===== */
.ig-form-group { margin-bottom: 16px; }

.ig-form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ig-text-secondary); }

.ig-form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--ig-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--ig-bg);
    color: var(--ig-text);
}

.ig-form-control:focus { outline: none; border-color: var(--ig-text-secondary); }

.ig-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ig-form-textarea { resize: vertical; min-height: 80px; }

.ig-file-upload {
    border: 2px dashed var(--ig-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ig-file-upload:hover { border-color: var(--ig-blue); }

.ig-file-upload-icon { font-size: 32px; margin-bottom: 8px; }

.ig-file-upload-text { font-size: 13px; color: var(--ig-text-secondary); }

.ig-btn-save {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #C13584 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.ig-btn-save:hover { background: linear-gradient(175deg, var(--primary) 0%, #C13584 100%); }

.ig-btn-cancel {
    width: 100%;
    padding: 14px;
    background: var(--border-light);
    color: var(--ig-text);
    border: 0px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 8px;
}

/* ===== AI BOX ===== */
.ig-ai-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    color: white;
}

.ig-ai-box-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; }

.ig-ai-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 60px;
}

.ig-ai-btn {
    width: 100%;
    padding: 10px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.ig-ai-result {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.ig-ai-result.active { display: block; }

/* ===== TOAST ===== */
.ig-toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ig-toast {
    background: #262626;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SETTINGS TABS ===== */
.settings-tab-content { display: none; }
.settings-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ===== RESPONSIVE ===== */
@media (min-width: 800px) {
    body {
        background: var(--bg);
        max-width: 800px;
        margin: auto;
    }
    
    .ig-profile-section { padding-top: 80px; }
    .ig-avatar { width: 80px; height: 80px;}
    .ig-stats { gap: 40px; }
    .ig-stories-grid { grid-template-columns: repeat(4, 1fr); }
    .ig-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }