/* ===== GFF Color Palette (confirmed blend of both dashboards) ===== */
:root {
    --bg-main: #161B22;
    --bg-panel: #1E2530;
    --accent-blue: #2E6BFF;
    --accent-teal: #00E6A0;
    --accent-gold: #FFD23F;
    --accent-pink: #FF6EC7;
    --accent-purple: #9B6BFF;
    --accent-orange: #FF9F45;
    --status-completed: #2E6BFF;
    --status-confirmed: #00C48C;
    --status-pending: #FFD23F;
    --status-cancelled: #FF4D6D;
    --status-refund: #8A94A6;
    --text-main: #F1F3F6;
    --text-muted: #9AA4B2;
}

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

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.gff-header {
    background: var(--bg-panel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.gff-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-pink);
}

.gff-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.gff-btn-logout {
    background: var(--accent-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.gff-main {
    padding: 24px;
}

.gff-card {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 20px;
    display: inline-block;
    min-width: 200px;
    margin-right: 16px;
    margin-bottom: 16px;
}

.gff-card h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.gff-card .value {
    font-size: 28px;
    font-weight: bold;
}

.card-teal { border-left: 4px solid var(--accent-teal); }
.card-gold { border-left: 4px solid var(--accent-gold); }
.card-pink { border-left: 4px solid var(--accent-pink); }

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #0d0d0d;
}
.badge-completed { background: var(--status-completed); color: white; }
.badge-confirmed { background: var(--status-confirmed); color: #0d0d0d; }
.badge-pending { background: var(--status-pending); color: #0d0d0d; }
.badge-cancelled { background: var(--status-cancelled); color: white; }
.badge-refund { background: var(--status-refund); color: white; }

.gff-form {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    margin: 60px auto;
}

.gff-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
}

.gff-form button {
    width: 100%;
    padding: 10px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.gff-error {
    background: var(--status-cancelled);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.gff-footer {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== User Management additions ===== */
.gff-section {
    background: var(--bg-panel);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.gff-section h2 {
    margin-bottom: 16px;
    font-size: 18px;
}

.gff-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.gff-form-inline .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gff-form-inline label {
    font-size: 12px;
    color: var(--text-muted);
}

.gff-form-inline input,
.gff-form-inline select {
    padding: 8px 10px;
    border-radius: 6px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
    min-width: 160px;
}

.gff-btn {
    padding: 8px 16px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

.gff-btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
}

.gff-btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.gff-btn-danger {
    background: var(--status-cancelled);
}

.gff-btn-success {
    background: var(--status-confirmed);
    color: #0d0d0d;
}

.gff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.gff-table th, .gff-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #2A3140;
    font-size: 14px;
}

.gff-table th {
    color: var(--text-muted);
    font-weight: normal;
    text-transform: uppercase;
    font-size: 11px;
}

.gff-nav {
    margin-bottom: 20px;
}

.gff-nav a {
    color: var(--accent-teal);
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}

.gff-success-msg {
    background: var(--status-confirmed);
    color: #0d0d0d;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* ===================================================
   ANIMATIONS - fade-ins, hover lifts, glow, pulse
   =================================================== */

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

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

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 6px var(--accent-pink), 0 0 12px rgba(255,110,199,0.4); }
    50%      { text-shadow: 0 0 14px var(--accent-pink), 0 0 24px rgba(255,110,199,0.7); }
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(255,77,109,0); }
}

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

body {
    animation: fadeIn 0.4s ease-in;
}

.gff-header {
    animation: slideDown 0.4s ease-out;
}

.gff-logo {
    animation: glowPulse 3s ease-in-out infinite;
}

.gff-main > * {
    animation: fadeInUp 0.5s ease-out both;
}
.gff-main > *:nth-child(2) { animation-delay: 0.05s; }
.gff-main > *:nth-child(3) { animation-delay: 0.1s; }
.gff-main > *:nth-child(4) { animation-delay: 0.15s; }
.gff-main > *:nth-child(5) { animation-delay: 0.2s; }

/* Cards lift and glow on hover */
.gff-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.card-teal:hover { box-shadow: 0 10px 24px rgba(0,230,160,0.25); }
.card-gold:hover { box-shadow: 0 10px 24px rgba(255,210,63,0.25); }
.card-pink:hover { box-shadow: 0 10px 24px rgba(255,110,199,0.25); }

/* Buttons: smooth press + hover glow */
.gff-btn, .gff-btn-logout {
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.gff-btn:hover, .gff-btn-logout:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 14px rgba(46,107,255,0.35);
}
.gff-btn:active, .gff-btn-logout:active {
    transform: translateY(0) scale(0.97);
}
.gff-btn-danger:hover { box-shadow: 0 6px 14px rgba(255,77,109,0.4); }
.gff-btn-success:hover { box-shadow: 0 6px 14px rgba(0,196,140,0.4); }
.gff-btn-outline:hover { background: rgba(46,107,255,0.1); }

/* Table rows highlight smoothly on hover */
.gff-table tr {
    transition: background-color 0.2s ease;
}
.gff-table tr:hover td {
    background-color: rgba(46,107,255,0.06);
}

/* Nav links underline slide-in */
.gff-nav a {
    position: relative;
    transition: color 0.2s ease;
}
.gff-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.25s ease;
}
.gff-nav a:hover::after {
    width: 100%;
}

/* Badges: low-stock / cancelled gently pulse to draw the eye */
.badge-cancelled {
    animation: softPulse 2s ease-in-out infinite;
}

/* Form appears with a soft scale-fade */
.gff-form {
    animation: fadeInUp 0.5s ease-out;
}

/* Inputs: glow on focus instead of default browser outline */
.gff-form input:focus,
.gff-form-inline input:focus,
.gff-form-inline select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-blue);
    transition: box-shadow 0.2s ease;
}

/* Success/error messages slide down in */
.gff-success-msg, .gff-error {
    animation: slideDown 0.3s ease-out;
}

/* ===================================================
   SIDEBAR + TOPBAR DASHBOARD LAYOUT
   =================================================== */

.gff-layout {
    display: flex;
    min-height: 100vh;
}

.gff-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-panel);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-in;
}

.gff-sidebar-profile {
    text-align: center;
    margin-bottom: 24px;
}

.gff-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 10px;
    color: white;
    animation: glowPulse 3s ease-in-out infinite;
}

.gff-sidebar-name {
    font-weight: bold;
    font-size: 15px;
}

.gff-sidebar-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gff-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.gff-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gff-sidebar nav a:hover {
    background: rgba(46,107,255,0.12);
    color: var(--text-main);
    transform: translateX(4px);
}

.gff-sidebar nav a.active {
    background: var(--accent-blue);
    color: white;
}

.gff-sidebar nav a.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.gff-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gff-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-panel);
    gap: 16px;
    flex-wrap: wrap;
    animation: slideDown 0.4s ease-out;
}

.gff-topbar h2 {
    font-size: 18px;
    white-space: nowrap;
}

.gff-search {
    flex: 1;
    max-width: 360px;
}

.gff-search input {
    width: 100%;
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
}

.gff-topbar-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.gff-icon-btn {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.gff-icon-btn:hover {
    transform: scale(1.15);
    color: var(--accent-teal);
}

.gff-icon-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--status-cancelled);
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 10px;
    animation: softPulse 2s ease-in-out infinite;
}

/* Overview cards row */
.gff-overview {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.gff-overview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-panel);
    padding: 18px 22px;
    border-radius: 12px;
    flex: 1;
    min-width: 200px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gff-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.gff-overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.gff-overview-text .label {
    font-size: 12px;
    color: var(--text-muted);
}

.gff-overview-text .value {
    font-size: 22px;
    font-weight: bold;
}

/* Chart panels row */
.gff-chart-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.gff-chart-panel {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 22px;
    flex: 1;
    min-width: 280px;
}

.gff-chart-panel h3 {
    font-size: 15px;
    margin-bottom: 16px;
}

/* Donut chart */
.gff-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gff-donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    transition: transform 0.4s ease;
}

.gff-donut:hover {
    transform: scale(1.05);
}

.gff-donut::after {
    content: '';
    position: absolute;
    inset: 24px;
    background: var(--bg-panel);
    border-radius: 50%;
}

.gff-legend {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 12px;
    justify-content: center;
}

.gff-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.gff-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bar chart */
.gff-bars {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 180px;
    margin-top: 10px;
}

.gff-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

.gff-bar {
    width: 100%;
    max-width: 36px;
    border-radius: 6px 6px 0 0;
    transition: height 0.8s ease, filter 0.2s ease;
}

.gff-bar:hover {
    filter: brightness(1.2);
}

.gff-bar-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

/* Product thumbnails */
.gff-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #2A3140;
    display: block;
}

.gff-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #2A3140;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 9px;
    text-align: center;
}

@media (max-width: 900px) {
    .gff-sidebar { display: none; }
}

/* ===================================================
   CUSTOMER STOREFRONT
   =================================================== */

.gff-shop-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bg-panel);
    flex-wrap: wrap;
    animation: slideDown 0.4s ease-out;
}

.gff-shop-search {
    flex: 1;
    max-width: 480px;
    display: flex;
}

.gff-shop-search input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 20px 0 0 20px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
}

.gff-shop-search button {
    padding: 10px 16px;
    border: none;
    border-radius: 0 20px 20px 0;
    background: var(--accent-blue);
    color: white;
    cursor: pointer;
    transition: filter 0.2s ease;
}
.gff-shop-search button:hover { filter: brightness(1.15); }

.gff-shop-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.gff-category-nav {
    display: flex;
    gap: 20px;
    padding: 12px 24px;
    background: #1A202B;
    overflow-x: auto;
    white-space: nowrap;
    animation: fadeIn 0.5s ease-in;
}

.gff-category-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}
.gff-category-nav a:hover { color: var(--accent-teal); }

.gff-shop-main {
    padding: 24px;
    animation: fadeInUp 0.4s ease-out;
}

.gff-shop-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.gff-filters {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.gff-filters h3 {
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 18px;
}
.gff-filters h3:first-child { margin-top: 0; }

.gff-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.gff-filters label:hover { color: var(--text-main); }

.gff-price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}
.gff-price-inputs input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
}

.gff-product-grid-area {
    flex: 1;
    min-width: 0;
}

.gff-grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.gff-grid-toolbar select {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
}

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

.gff-product-card {
    background: var(--bg-panel);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.4s ease-out both;
}
.gff-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.gff-product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #2A3140;
}

.gff-product-image-placeholder {
    width: 100%;
    height: 160px;
    background: #2A3140;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
}

.gff-product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gff-product-name {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    min-height: 36px;
}

.gff-product-category {
    font-size: 11px;
    color: var(--text-muted);
}

.gff-product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-teal);
}

.gff-qty-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.gff-qty-stepper button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}
.gff-qty-stepper button:hover { background: var(--accent-blue); }

.gff-qty-input {
    width: 40px;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
}

.gff-add-to-cart {
    margin-top: 8px;
    padding: 9px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.gff-add-to-cart:hover { filter: brightness(1.1); transform: translateY(-2px); }
.gff-add-to-cart:disabled { opacity: 0.7; cursor: wait; }

@keyframes addedPulse {
    0% { transform: scale(1); background: var(--accent-blue); }
    50% { transform: scale(1.06); background: var(--status-confirmed); }
    100% { transform: scale(1); background: var(--accent-blue); }
}
.gff-added-pulse {
    animation: addedPulse 0.6s ease;
}

/* Toasts */
.gff-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gff-toast {
    background: var(--bg-panel);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-left: 4px solid var(--status-confirmed);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 13px;
}
.gff-toast-show {
    opacity: 1;
    transform: translateX(0);
}
.gff-toast-error {
    border-left-color: var(--status-cancelled);
}

/* Cart Page */
.gff-cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #2A3140;
    transition: opacity 0.25s ease;
}

.gff-cart-row img, .gff-cart-row .gff-thumb-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.gff-cart-row-info {
    flex: 1;
    min-width: 0;
}

.gff-cart-row-info .name {
    font-weight: bold;
    font-size: 14px;
}

.gff-cart-row-info .price {
    font-size: 13px;
    color: var(--text-muted);
}

.gff-line-total {
    font-weight: bold;
    min-width: 90px;
    text-align: right;
    color: var(--accent-teal);
}

.gff-order-summary {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.gff-order-summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.gff-order-summary .row.total {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    border-top: 1px solid #2A3140;
    padding-top: 12px;
}

.gff-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.gff-empty-state h3 {
    color: var(--text-main);
    margin-bottom: 8px;
}

/* ===================================================
   CUSTOM CONFIRM MODAL (replaces browser confirm())
   =================================================== */

.gff-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9999;
}
.gff-modal-overlay.gff-modal-show {
    opacity: 1;
}

.gff-modal-box {
    background: var(--bg-panel);
    padding: 26px;
    border-radius: 12px;
    max-width: 360px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.2s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.gff-modal-overlay.gff-modal-show .gff-modal-box {
    transform: scale(1);
}

.gff-modal-box p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.gff-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===================================================
   IMAGE LIGHTBOX
   =================================================== */

.gff-viewable-img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}
.gff-viewable-img:hover {
    opacity: 0.85;
}

.gff-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10000;
}
.gff-lightbox-overlay.gff-lightbox-show {
    opacity: 1;
}

.gff-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}
.gff-lightbox-overlay.gff-lightbox-show .gff-lightbox-content {
    transform: scale(1);
}

.gff-lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    display: block;
}

.gff-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--status-cancelled);
    color: white;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.gff-lightbox-close:hover {
    transform: scale(1.1);
}

/* ===================================================
   PRODUCT VARIANTS + CLEARANCE + ATTRIBUTE FILTERS
   =================================================== */

.gff-variant-select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #2A3140;
    color: var(--text-main);
    margin-top: 6px;
    font-size: 13px;
}

.gff-clearance-badge {
    display: inline-block;
    background: var(--accent-pink);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    animation: softPulse 2s ease-in-out infinite;
}

.gff-discount-badge {
    display: inline-block;
    background: var(--status-cancelled);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    margin-left: 4px;
}

.gff-original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 6px;
}

.gff-variant-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* ===================================================
   GUIDED PRODUCT FINDER (chat-style step-by-step picker)
   =================================================== */

.gff-finder-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.gff-finder-chat {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gff-finder-bubble {
    padding: 10px 16px;
    border-radius: 14px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease-out both;
}

.gff-finder-bot {
    background: #2A3140;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.gff-finder-user {
    background: var(--accent-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.gff-finder-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    max-width: 90%;
}

.gff-finder-option-btn {
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.gff-finder-option-btn:hover {
    background: rgba(46,107,255,0.15);
    transform: translateX(4px);
}
.gff-finder-option-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.gff-finder-result-card {
    background: #1A202B;
    border-left: 4px solid var(--accent-teal);
    border-radius: 10px;
    padding: 16px;
    align-self: stretch;
    animation: fadeInUp 0.4s ease-out both;
}

.gff-finder-result-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
}

.gff-finder-result-line {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
/* ===================================================
   DASHBOARD: two-column row (Low Stock Alerts + Charts)
   =================================================== */

.gff-dashboard-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.gff-dashboard-col-narrow {
    width: 280px;
    flex-shrink: 0;
}

.gff-dashboard-col-wide {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .gff-dashboard-row {
        flex-direction: column;
    }
    .gff-dashboard-col-narrow {
        width: 100%;
    }
}

/* Low Stock Alert items */
.gff-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #2A3140;
    animation: fadeInUp 0.4s ease-out both;
    transition: transform 0.2s ease;
}
.gff-alert-item:hover {
    transform: translateX(4px);
}
.gff-alert-item:last-of-type {
    border-bottom: none;
}

.gff-alert-flag {
    font-size: 16px;
    animation: softPulse 2s ease-in-out infinite;
}

.gff-alert-name {
    font-size: 13px;
    font-weight: bold;
}

.gff-alert-stock {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
/* ===== NEW BACKGROUND ANIMATION ===== */
body {
    background: linear-gradient(135deg, #0a0f1a 0%, #1a202b 50%, #0f1a24 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

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

/* Optional subtle pattern overlay (gives depth) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

/* Ensure main content sits above the background */
.gff-header, .gff-main, .gff-shop-main, .gff-footer, .gff-sidebar {
    position: relative;
    z-index: 1;
}
/* ===== BASE RESPONSIVE ===== */

/* --- MOBILE FIRST (default) --- */
.gff-shop-layout {
    flex-direction: column;
    padding: 12px;
    gap: 20px;
}

.gff-filters {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 16px;
}

.gff-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.gff-cart-row {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
}

.gff-order-summary {
    position: relative;
    top: 0;
}

.gff-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.gff-shop-topbar {
    flex-direction: column;
    align-items: stretch;
}

.gff-shop-search {
    max-width: 100%;
}

.gff-category-nav {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 12px;
}

.gff-category-nav a {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
}

/* ===== TABLET (600px - 1024px) ===== */
@media (min-width: 600px) {
    .gff-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gff-shop-layout {
        flex-direction: row;
        gap: 24px;
        padding: 16px 20px;
    }
    .gff-filters {
        width: 220px;
    }
    .gff-topbar {
        flex-direction: row;
        align-items: center;
    }
    .gff-shop-topbar {
        flex-direction: row;
        align-items: center;
    }
    .gff-shop-search {
        max-width: 300px;
    }
    .gff-cart-row {
        flex-direction: row;
        align-items: center;
    }
}

/* ===== DESKTOP (1025px+) ===== */
@media (min-width: 1025px) {
    .gff-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gff-filters {
        width: 250px;
    }
    .gff-shop-layout {
        padding: 24px 32px;
        gap: 30px;
    }
    .gff-topbar {
        padding: 16px 32px;
    }
    .gff-shop-topbar {
        padding: 16px 32px;
    }
    .gff-category-nav {
        padding: 12px 32px;
        gap: 16px;
    }
    .gff-category-nav a {
        font-size: 14px;
        padding: 6px 16px;
        border: none;
        border-radius: 0;
    }
    .gff-shop-search {
        max-width: 480px;
    }
}

/* Extra: make product cards take full height */
.gff-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gff-product-card .gff-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* DEBUG: Red border on all sections to confirm CSS is loading */
.gff-form-section {
    border: 2px solid red !important;
}

/* ===== FIX STOCK LEVELS BAR CHART OVERFLOW ===== */
.gff-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
}
.gff-bar-col {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 4px;
}
.gff-bar {
    width: 100%;
    max-width: 32px;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
    min-height: 4px;
}
.gff-bar-label {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 56px;
    word-break: break-word;
    white-space: normal;
}
/* Optional: if you want horizontal scroll for many categories */
@media (max-width: 900px) {
    .gff-bars {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 16px;
    }
    .gff-bar-col {
        flex: 0 0 50px;
    }
    .gff-bar-label {
        font-size: 8px;
        max-width: 46px;
    }
}