@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&family=Space+Grotesk:wght@700&display=swap');

/* ============================
   BASE & RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.font-outfit { font-family: 'Outfit', sans-serif; }

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.dark ::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-slide-down { animation: slideDown 0.3s ease-out forwards; }
.anim-delay-1 { animation-delay: 0.1s; opacity: 0; }
.anim-delay-2 { animation-delay: 0.2s; opacity: 0; }
.anim-delay-3 { animation-delay: 0.3s; opacity: 0; }
.anim-delay-4 { animation-delay: 0.4s; opacity: 0; }
.anim-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ============================
   GRIMONT GLOBAL HEADER
   ============================ */
.grimont-global-header {
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.grimont-global-header * { box-sizing: border-box; }
.grimont-global-header .ggh-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ggh-left { display: flex; align-items: center; gap: 1.5rem; }
.ggh-logo-group {
    display: flex; align-items: center; gap: 0.875rem;
    text-decoration: none; transition: transform 0.2s ease;
}
.ggh-logo-group:hover { transform: scale(1.02); }
.ggh-logo-box {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25); flex-shrink: 0;
}
.ggh-logo-text {
    font-family: 'Space Grotesk', monospace; font-weight: 800; font-size: 1.2rem;
    color: white; letter-spacing: 0.05em; display: none;
}
.ggh-logo-text span { color: #00f2ff; }
@media (min-width: 640px) { .ggh-logo-text { display: block; } }
.ggh-separator { width: 1px; height: 36px; background-color: rgba(255, 255, 255, 0.1); display: none; }
@media (min-width: 768px) { .ggh-separator { display: block; } }
.ggh-app-info { display: flex; flex-direction: column; justify-content: center; }
.ggh-app-title-group { display: flex; align-items: center; gap: 0.6rem; }
.ggh-app-icon-container {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #60a5fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); flex-shrink: 0;
}
.ggh-app-name { font-weight: 700; color: white; font-size: 1.05rem; margin: 0; padding: 0; letter-spacing: 0.02em; }
.ggh-app-desc {
    font-size: 0.8rem; color: #94a3b8; max-width: 600px;
    display: none; margin: 4px 0 0 0; padding: 0; line-height: 1.4; font-weight: 300;
}
@media (min-width: 1024px) { .ggh-app-desc { display: block; } }
.ggh-right { display: flex; align-items: center; gap: 1rem; }
.ggh-right button {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important; width: 40px !important; height: 40px !important;
    border-radius: 50% !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
    cursor: pointer !important; transition: all 0.2s ease !important;
    padding: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.ggh-right button:hover {
    background: rgba(30, 41, 59, 1) !important; color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important; transform: translateY(-1px) !important;
}

/* ============================
   CONFIG PANEL STYLES
   ============================ */
.config-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.config-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #c7d2fe;
}
.dark .config-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.dark .config-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.config-label {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; font-weight: 600; color: #475569;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.dark .config-label { color: #94a3b8; }

.config-select, .config-input, .config-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.config-select option, .config-select optgroup {
    color: #1e293b;
    background-color: #ffffff;
}
.dark .config-select option, .dark .config-select optgroup {
    color: #e2e8f0;
    background-color: #0f172a;
}
.config-select:focus, .config-input:focus, .config-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.dark .config-select, .dark .config-input, .dark .config-textarea {
    background: rgba(15, 23, 42, 0.5);
    border-color: #475569;
    color: #e2e8f0;
}
.dark .config-select:focus, .dark .config-input:focus, .dark .config-textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.config-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Color picker wrapper */
.color-picker-group {
    display: flex; align-items: center; gap: 0.5rem;
}
.color-picker-group input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 44px; height: 38px;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 2px;
    background: transparent;
    transition: border-color 0.2s ease;
}
.color-picker-group input[type="color"]:hover {
    border-color: #6366f1;
}
.dark .color-picker-group input[type="color"] {
    border-color: #475569;
}
.color-picker-group input[type="text"] {
    flex: 1;
}

/* Slider range styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    transition: background 0.2s;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%; border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}
.dark input[type="range"] { background: #334155; }

/* Slider + input inline layout */
.slider-group {
    display: flex; align-items: center; gap: 0.75rem;
}
.slider-group input[type="range"] { flex: 1; }
.slider-group input[type="number"] {
    width: 70px; text-align: center;
}

/* Device buttons */
.device-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-size: 0.78rem; font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    flex: 1;
}
.device-btn:hover {
    border-color: #a5b4fc;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.04);
}
.device-btn.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.device-btn i { font-size: 1.3rem; }
.dark .device-btn {
    border-color: #475569;
    color: #94a3b8;
}
.dark .device-btn:hover {
    border-color: #818cf8;
    color: #a5b4fc;
    background: rgba(129, 140, 248, 0.08);
}
.dark .device-btn.active {
    border-color: #818cf8;
    background: rgba(129, 140, 248, 0.12);
    color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
}

/* Gradient toggle */
.toggle-switch {
    position: relative;
    display: inline-flex; align-items: center; gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem; color: #475569;
}
.dark .toggle-switch { color: #94a3b8; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
    width: 40px; height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    position: relative;
    transition: background 0.3s ease;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(18px);
}
.dark .toggle-slider { background: #475569; }

/* ============================
   LIVE PREVIEW
   ============================ */
.live-preview-container {
    border-radius: 1rem;
    border: 2px dashed #c7d2fe;
    padding: 2rem;
    min-height: 120px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.dark .live-preview-container {
    border-color: #4f46e5;
}
.live-preview-label {
    position: absolute;
    top: 0.5rem; left: 1rem;
    font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #6366f1; opacity: 0.6;
}
.dark .live-preview-label { color: #a5b4fc; }

/* ============================
   ANALYZE BUTTON
   ============================ */
.btn-analyze {
    display: inline-flex; align-items: center; gap: 0.625rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    font-family: 'Inter', sans-serif;
}
.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}
.btn-analyze:active {
    transform: translateY(0);
}
.btn-analyze i { font-size: 1.1rem; }

/* ============================
   REPORT STYLES
   ============================ */

/* Donut Chart */
.donut-chart {
    position: relative;
    width: 160px; height: 160px;
}
.donut-chart-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.1));
    overflow: visible;
}
.donut-chart-background {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.5;
}
.dark .donut-chart-background { stroke: #334155; }
.donut-chart-foreground {
    fill: none;
    stroke-width: 3.2;
    stroke-dasharray: 0 1000;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
}
.donut-chart-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* KPI Cards */
.kpi-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.kpi-card:hover::before { opacity: 1; }
.kpi-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.dark .kpi-card {
    background: #1e293b;
    border-color: #334155;
}
.dark .kpi-card:hover {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.08);
}
.kpi-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
}
.kpi-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dark .kpi-card-label { color: #94a3b8; }

/* Status badges */
.badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.dark .badge-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.dark .badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.dark .badge-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.dark .badge-info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }

/* UI Score Bar */
.ui-score-bar-track {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.dark .ui-score-bar-track { background: #334155; }
.ui-score-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    background-size: 300% 100%;
}

/* Recommendation cards */
.rec-card {
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    display: flex; gap: 1rem;
    transition: all 0.3s ease;
    background: white;
}
.rec-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.dark .rec-card {
    background: #1e293b;
    border-color: #334155;
}
.rec-card.critical { border-left: 4px solid #ef4444; }
.rec-card.important { border-left: 4px solid #f59e0b; }
.rec-card.suggestion { border-left: 4px solid #6366f1; }

.rec-icon {
    width: 36px; height: 36px;
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.rec-card.critical .rec-icon { background: #fee2e2; color: #dc2626; }
.rec-card.important .rec-icon { background: #fef3c7; color: #d97706; }
.rec-card.suggestion .rec-icon { background: #e0e7ff; color: #4f46e5; }
.dark .rec-card.critical .rec-icon { background: rgba(239,68,68,0.15); color: #fca5a5; }
.dark .rec-card.important .rec-icon { background: rgba(245,158,11,0.15); color: #fbbf24; }
.dark .rec-card.suggestion .rec-icon { background: rgba(99,102,241,0.15); color: #a5b4fc; }

.rec-content { flex: 1; min-width: 0; }
.rec-title { font-weight: 600; font-size: 0.95rem; color: #1e293b; margin-bottom: 0.25rem; }
.dark .rec-title { color: #f1f5f9; }
.rec-desc { font-size: 0.85rem; color: #64748b; line-height: 1.5; margin-bottom: 0.35rem; }
.dark .rec-desc { color: #94a3b8; }
.rec-fix { font-size: 0.82rem; color: #059669; font-weight: 500; margin-bottom: 0.35rem; }
.dark .rec-fix { color: #34d399; }
.rec-source {
    font-size: 0.75rem; color: #6366f1;
    text-decoration: none; transition: color 0.2s;
}
.rec-source:hover { color: #4338ca; text-decoration: underline; }
.dark .rec-source { color: #a5b4fc; }
.dark .rec-source:hover { color: #c7d2fe; }

/* Editable indicator */
.editable-hint {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.6rem; font-weight: 600;
    color: #a5b4fc; text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0; transition: opacity 0.3s;
    position: absolute; top: 0.25rem; right: 0.5rem;
    pointer-events: none;
}
*:hover > .editable-hint,
[contenteditable="true"]:focus ~ .editable-hint { opacity: 1; }

[contenteditable="true"] {
    outline: none;
    border-radius: 4px;
    transition: background 0.2s, box-shadow 0.2s;
}
[contenteditable="true"]:focus {
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.dark [contenteditable="true"]:focus {
    background: rgba(129, 140, 248, 0.08);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.15);
}

/* ============================
   DEVICE PREVIEWS
   ============================ */
.device-frame {
    border-radius: 1.5rem;
    background: #1e293b;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    position: relative;
}

/* Mobile frame */
.device-frame-mobile {
    width: 375px;
    border-radius: 2.5rem;
    padding: 12px;
}
.device-frame-mobile .device-notch {
    width: 120px; height: 24px;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 8px;
}
.device-frame-mobile .device-screen {
    border-radius: 1.75rem;
    overflow: hidden;
    min-height: 300px;
}

/* Tablet frame */
.device-frame-tablet {
    width: 768px;
    border-radius: 1.5rem;
    padding: 14px;
}
.device-frame-tablet .device-screen {
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 260px;
}

/* Desktop frame */
.device-frame-desktop {
    width: 960px;
    border-radius: 0.75rem;
}
.device-frame-desktop .device-chrome {
    background: #334155;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 6px;
    border-radius: 0.75rem 0.75rem 0 0;
}
.device-frame-desktop .device-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.device-frame-desktop .device-screen {
    overflow: hidden;
    min-height: 240px;
}

/* Scale devices to fit container */
.device-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.device-scaled {
    transform-origin: top center;
}

/* ============================
   BEFORE / AFTER
   ============================ */
.compare-panel {
    flex: 1;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}
.dark .compare-panel { border-color: #334155; }
.compare-label {
    padding: 0.5rem 1rem;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.compare-label-before {
    background: #fef3c7; color: #92400e;
}
.compare-label-after {
    background: #d1fae5; color: #065f46;
}
.dark .compare-label-before { background: rgba(245,158,11,0.15); color: #fbbf24; }
.dark .compare-label-after { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.compare-content {
    padding: 1.5rem;
    min-height: 150px;
}

/* ============================
   SOURCES
   ============================ */
.source-link {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.source-link:hover { color: #4f46e5; }
.source-link:last-child { border-bottom: none; }
.dark .source-link { color: #94a3b8; border-bottom-color: #1e293b; }
.dark .source-link:hover { color: #a5b4fc; }
.source-link i { color: #6366f1; margin-top: 2px; flex-shrink: 0; }
.dark .source-link i { color: #818cf8; }

/* ============================
   EXPORT BUTTONS
   ============================ */
.btn-export {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}
.btn-export-pdf {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-export-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.btn-export-word {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}
.btn-export-word:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}
.btn-export-pptx {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}
.btn-export-pptx:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}
.btn-export-zip {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}
.btn-export-zip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.btn-export-png {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-export-png:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}
.dark .btn-export-png {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}
.dark .btn-export-png:hover { background: #3b4c63; }
.btn-reset {
    background: transparent;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}
.btn-reset:hover {
    background: #fef2f2;
    transform: translateY(-1px);
}
.dark .btn-reset {
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.dark .btn-reset:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* ============================
   SECTION TITLES
   ============================ */
.section-title {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #1e293b;
    margin-bottom: 1.25rem;
}
.dark .section-title { color: #f1f5f9; }
.section-title-icon {
    width: 36px; height: 36px;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    display: flex; align-items: center; justify-content: center;
    color: #6366f1; font-size: 1rem;
}
.dark .section-title-icon {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    color: #a5b4fc;
}

/* ============================
   MULTI-SIZE PREVIEW
   ============================ */
.size-preview-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.size-preview-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.dark .size-preview-card { border-color: #334155; }
.size-preview-label {
    background: #f1f5f9;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem; font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dark .size-preview-label { background: #0f172a; color: #94a3b8; }
.size-preview-text {
    padding: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================
   PRINT REPORT
   ============================ */
#printable-report {
    position: relative;
}

/* ============================
   LOADING SPINNER
   ============================ */
.loading-spinner {
    width: 48px; height: 48px;
    border: 4px solid #c7d2fe;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .grimont-global-header .ggh-container { padding: 0 1rem; }
    .device-frame-mobile { transform: scale(0.85); transform-origin: top center; }
    .device-frame-tablet { transform: scale(0.42); transform-origin: top center; }
    .device-frame-desktop { transform: scale(0.35); transform-origin: top center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .device-frame-tablet { transform: scale(0.55); transform-origin: top center; }
    .device-frame-desktop { transform: scale(0.48); transform-origin: top center; }
}
@media (min-width: 1025px) {
    .device-frame-tablet { transform: scale(0.6); transform-origin: top center; }
    .device-frame-desktop { transform: scale(0.55); transform-origin: top center; }
}

/* ============================
   EXPORT CAPTURE OVERRIDES
   ============================ */
.exporting, .exporting * {
    animation: none !important;
    opacity: 1 !important;
    transition: none !important;
}
