/* ═══════════════════════════════════════════════════════════
   ALLOVE — Luxury Design System
   Burgundy Theme — Production Grade
   ═══════════════════════════════════════════════════════════ */

:root {
    /* === COLORS === */
    
    /* Burgundy (Header/Footer) */
    --allove-burgundy:        #8B1A2B;
    --allove-burgundy-dark:   #6F1422;
    --allove-burgundy-darker: #5C0F1C;
    --allove-burgundy-light:  #A82334;
    
    /* Wine/Mulberry (Buttons) */
    --allove-wine:            #C71F37;
    --allove-wine-dark:       #A11529;
    --allove-wine-light:      #E03050;
    --allove-wine-hover:      #B81B30;
    
    /* Gold accents (luxury) */
    --allove-gold:            #C9A961;
    --allove-gold-light:      #E0C580;
    --allove-gold-dark:       #A8893F;
    
    /* Neutrals */
    --allove-white:           #FFFFFF;
    --allove-cream:           #FAF7F2;
    --allove-off-white:       #F8F6F3;
    --allove-text:            #1A1A1A;
    --allove-text-secondary:  #555555;
    --allove-text-light:      #888888;
    --allove-border:          #E8E4DE;
    --allove-border-light:    #F0EDE8;
    
    /* Status */
    --allove-success:         #2E7D32;
    --allove-error:           #C62828;
    --allove-warning:         #F57C00;
    --allove-info:            #1565C0;
    
    /* === TYPOGRAPHY === */
    --allove-font:            'Sarabun', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --allove-font-display:    'Playfair Display', 'Sarabun', serif;
    
    /* === SHADOWS === */
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg:    0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl:    0 16px 48px rgba(0,0,0,0.12);
    --shadow-burgundy: 0 4px 16px rgba(139,26,43,0.20);
    --shadow-wine:    0 4px 16px rgba(199,31,55,0.25);
    
    /* === SPACING === */
    --header-h:     64px;
    --header-h-mob: 56px;
    --footer-h:     48px;
    --footer-h-mob: 44px;
    --container:    1280px;
    --radius:       8px;
    --radius-lg:    12px;
}

/* ═══════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--allove-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--allove-text);
    background: var(--allove-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--allove-burgundy);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--allove-wine);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT — header, main, footer (sticky footer)
   ═══════════════════════════════════════════════════════════ */

.allove-header {
    background: linear-gradient(135deg, var(--allove-burgundy-dark) 0%, var(--allove-burgundy) 50%, var(--allove-burgundy-light) 100%);
    color: var(--allove-white);
    height: var(--header-h);
    box-shadow: var(--shadow-burgundy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--allove-gold);
}

.allove-header-inner {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.allove-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.allove-logo-img {
    height: 40px;
    width: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.allove-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.allove-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--allove-white);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.allove-header-action:hover {
    background: rgba(255,255,255,0.15);
    color: var(--allove-white);
    border-color: var(--allove-gold);
}

.allove-header-action svg {
    width: 16px;
    height: 16px;
}

.allove-main {
    flex: 1 0 auto;
    background: var(--allove-white);
    width: 100%;
}

/* === Footer === */
.allove-footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--allove-burgundy-darker) 0%, var(--allove-burgundy-dark) 50%, var(--allove-burgundy) 100%);
    color: var(--allove-white);
    height: var(--footer-h);
    border-top: 2px solid var(--allove-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
    box-shadow: 0 -4px 16px rgba(139,26,43,0.15);
}

.allove-footer-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--allove-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — Wine luxury with icons
   ═══════════════════════════════════════════════════════════ */

.allove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--allove-wine) 0%, var(--allove-wine-dark) 100%);
    color: var(--allove-white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--allove-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: var(--shadow-wine);
    letter-spacing: 0.3px;
    min-height: 44px; /* touch target */
    position: relative;
    overflow: hidden;
}

.allove-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--allove-wine-hover) 0%, var(--allove-wine-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(199,31,55,0.35);
    color: var(--allove-white);
}

.allove-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-wine);
}

.allove-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.allove-btn-block {
    width: 100%;
}

.allove-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    min-height: 52px;
}

.allove-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

/* Icon styling inside button */
.allove-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.allove-btn-lg svg {
    width: 20px;
    height: 20px;
}

.allove-btn-sm svg {
    width: 14px;
    height: 14px;
}

/* Outline variant */
.allove-btn-outline {
    background: var(--allove-white);
    color: var(--allove-wine);
    border: 2px solid var(--allove-wine);
    box-shadow: none;
}

.allove-btn-outline:hover:not(:disabled) {
    background: var(--allove-wine);
    color: var(--allove-white);
    transform: translateY(-1px);
}

/* Ghost variant */
.allove-btn-ghost {
    background: transparent;
    color: var(--allove-burgundy);
    box-shadow: none;
    border: 1px solid transparent;
}

.allove-btn-ghost:hover:not(:disabled) {
    background: var(--allove-cream);
    color: var(--allove-burgundy-dark);
    transform: none;
}

/* Gold variant (rare/special) */
.allove-btn-gold {
    background: linear-gradient(135deg, var(--allove-gold) 0%, var(--allove-gold-dark) 100%);
    color: var(--allove-burgundy-darker);
    box-shadow: 0 4px 16px rgba(201,169,97,0.35);
}

.allove-btn-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--allove-gold-light) 0%, var(--allove-gold) 100%);
    color: var(--allove-burgundy-darker);
}

/* ═══════════════════════════════════════════════════════════
   FORMS — Luxury inputs
   ═══════════════════════════════════════════════════════════ */

.allove-form {
    width: 100%;
}

.allove-field {
    margin-bottom: 20px;
}

.allove-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--allove-text);
    letter-spacing: 0.3px;
}

.allove-label-required::after {
    content: ' *';
    color: var(--allove-wine);
}

.allove-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--allove-white);
    border: 1.5px solid var(--allove-border);
    border-radius: var(--radius);
    font-family: var(--allove-font);
    font-size: 15px;
    line-height: 1.4;
    color: var(--allove-text);
    transition: all 0.2s;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.allove-input:focus {
    outline: none;
    border-color: var(--allove-burgundy);
    box-shadow: 0 0 0 3px rgba(114,47,55,0.1);
}

.allove-input::placeholder {
    color: var(--allove-text-light);
}

.allove-input.is-invalid {
    border-color: var(--allove-error);
}

.allove-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.allove-input-icon {
    position: absolute;
    left: 14px;
    color: var(--allove-text-light);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.allove-input-group .allove-input {
    padding-left: 44px;
}

.allove-help-text {
    margin-top: 6px;
    font-size: 13px;
    color: var(--allove-text-light);
}

.allove-error-text {
    margin-top: 6px;
    font-size: 13px;
    color: var(--allove-error);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   CARDS & PANELS
   ═══════════════════════════════════════════════════════════ */

.allove-card {
    background: var(--allove-white);
    border: 1px solid var(--allove-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.allove-card-luxury {
    border: 1px solid var(--allove-border);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.allove-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--allove-burgundy) 0%, 
        var(--allove-gold) 50%, 
        var(--allove-burgundy) 100%);
}

.allove-card-body {
    padding: 32px;
}

.allove-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--allove-border-light);
    background: var(--allove-cream);
}

.allove-card-title {
    margin: 0;
    font-family: var(--allove-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--allove-burgundy-dark);
    letter-spacing: 0.5px;
}

.allove-card-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: var(--allove-text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════ */

.allove-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border-left: 4px solid;
    margin-bottom: 20px;
    font-size: 14px;
}

.allove-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.allove-alert-error {
    background: #FEF2F2;
    color: var(--allove-error);
    border-color: var(--allove-error);
}

.allove-alert-success {
    background: #F0FDF4;
    color: var(--allove-success);
    border-color: var(--allove-success);
}

.allove-alert-warning {
    background: #FFFBEB;
    color: var(--allove-warning);
    border-color: var(--allove-warning);
}

.allove-alert-info {
    background: #EFF6FF;
    color: var(--allove-info);
    border-color: var(--allove-info);
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGE LAYOUT
   ═══════════════════════════════════════════════════════════ */

.allove-auth-page {
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: 
        radial-gradient(ellipse at top, var(--allove-cream) 0%, var(--allove-white) 70%),
        linear-gradient(180deg, var(--allove-white) 0%, var(--allove-off-white) 100%);
}

.allove-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--allove-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.allove-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--allove-burgundy) 0%, 
        var(--allove-gold) 50%, 
        var(--allove-burgundy) 100%);
}

.allove-auth-header {
    padding: 36px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--allove-border-light);
}

.allove-auth-title {
    margin: 0 0 8px 0;
    font-family: var(--allove-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--allove-burgundy-dark);
    letter-spacing: 1px;
}

.allove-auth-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--allove-text-secondary);
}

.allove-auth-body {
    padding: 32px;
}

.allove-auth-footer {
    padding: 20px 32px;
    text-align: center;
    background: var(--allove-cream);
    border-top: 1px solid var(--allove-border-light);
    font-size: 14px;
    color: var(--allove-text-secondary);
}

.allove-auth-footer a {
    color: var(--allove-burgundy);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */

.allove-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px;
}

.allove-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--allove-border-light);
}

.allove-page-title {
    margin: 0 0 4px 0;
    font-family: var(--allove-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--allove-burgundy-dark);
}

.allove-page-subtitle {
    margin: 0;
    color: var(--allove-text-secondary);
    font-size: 15px;
}

/* Dashboard menu grid - mobile + desktop equivalent */
.allove-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.allove-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--allove-white);
    border: 1.5px solid var(--allove-border);
    border-radius: var(--radius-lg);
    color: var(--allove-text);
    text-decoration: none;
    transition: all 0.25s;
    text-align: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.allove-menu-tile:hover {
    border-color: var(--allove-burgundy);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--allove-burgundy-dark);
}

.allove-menu-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--allove-wine) 0%, var(--allove-wine-dark) 100%);
    color: var(--allove-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: var(--shadow-wine);
}

.allove-menu-tile-icon svg {
    width: 24px;
    height: 24px;
}

.allove-menu-tile-label {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Desktop tweaks
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
    .allove-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .allove-menu-tile {
        min-height: 140px;
        padding: 28px 20px;
    }
    .allove-menu-tile-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }
    .allove-menu-tile-icon svg {
        width: 28px;
        height: 28px;
    }
    .allove-menu-tile-label {
        font-size: 15px;
    }
}

@media (min-width: 960px) {
    .allove-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .allove-page-title {
        font-size: 32px;
    }
}

@media (min-width: 1200px) {
    .allove-menu-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile adjustments */
@media (max-width: 639px) {
    :root {
        --header-h: var(--header-h-mob);
        --footer-h: var(--footer-h-mob);
    }
    
    .allove-header-inner {
        padding: 0 16px;
    }
    
    .allove-logo-img {
        height: 32px;
    }
    
    .allove-header-action {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .allove-header-action-text {
        display: none; /* show only icon on mobile */
    }
    
    .allove-container {
        padding: 16px;
    }
    
    .allove-card-body {
        padding: 24px 20px;
    }
    
    .allove-auth-body {
        padding: 24px 20px;
    }
    
    .allove-auth-header {
        padding: 28px 20px 20px;
    }
    
    .allove-footer-text {
        font-size: 11px;
        letter-spacing: 0.8px;
    }
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */

.allove-text-center { text-align: center; }
.allove-text-burgundy { color: var(--allove-burgundy-dark); }
.allove-text-wine    { color: var(--allove-wine); }
.allove-text-gold    { color: var(--allove-gold-dark); }
.allove-mt-2 { margin-top: 8px; }
.allove-mt-3 { margin-top: 12px; }
.allove-mt-4 { margin-top: 16px; }
.allove-mt-5 { margin-top: 20px; }
.allove-mb-2 { margin-bottom: 8px; }
.allove-mb-3 { margin-bottom: 12px; }
.allove-mb-4 { margin-bottom: 16px; }
.allove-divider {
    height: 1px;
    background: var(--allove-border-light);
    margin: 20px 0;
}

/* WebView app — hide scrollbar */
.allove-app-mode {
    overflow: hidden;
}

.allove-app-mode::-webkit-scrollbar {
    display: none;
}

/* Spinner */
.allove-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--allove-white);
    border-radius: 50%;
    animation: allove-spin 0.7s linear infinite;
}

@keyframes allove-spin {
    to { transform: rotate(360deg); }
}

/* Loading state for buttons */
.allove-btn.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.allove-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--allove-white);
    border-radius: 50%;
    animation: allove-spin 0.7s linear infinite;
}

.allove-btn.is-loading > * {
    visibility: hidden;
}

/* Print/accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL UTILITIES (Phase 1A)
   ═══════════════════════════════════════════════════════════ */

/* Header user display */
.allove-header-user {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    cursor: default !important;
}

.allove-header-user:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: none !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* Info box (luxury muted) */
.allove-info-box {
    margin-top: 32px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--allove-cream) 0%, var(--allove-off-white) 100%);
    border-left: 3px solid var(--allove-gold);
    border-radius: var(--radius);
    color: var(--allove-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.allove-info-box strong {
    color: var(--allove-burgundy-dark);
    margin-right: 4px;
}

/* === Very small screens — shrink logo === */
@media (max-width: 380px) {
    .allove-logo-img {
        height: 28px;
    }
}


/* ═══════════════════════════════════════════════════════════
   PASSWORD SHOW/HIDE TOGGLE + REMEMBER CHECKBOX (Phase 1A)
   ═══════════════════════════════════════════════════════════ */

.allove-input-with-toggle {
    padding-right: 44px !important;
}

.allove-input-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--allove-text-secondary);
    transition: all 0.15s;
    padding: 0;
}

.allove-input-toggle:hover {
    background: var(--allove-cream);
    color: var(--allove-burgundy);
}

.allove-input-toggle:focus {
    outline: 2px solid var(--allove-wine);
    outline-offset: 1px;
}

.allove-input-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.allove-input-group {
    position: relative;
}

.allove-remember-row {
    margin-bottom: 16px !important;
}

.allove-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--allove-text);
    user-select: none;
    padding: 4px 0;
}

.allove-checkbox-label:hover {
    color: var(--allove-burgundy-dark);
}

.allove-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--allove-wine);
    cursor: pointer;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CONSISTENCY OVERRIDES — appended 2026-05-03
   Purpose: enforce identical header/logo/footer across all 9
   subdomains so the brand looks the same on every page.
   These rules are append-only and never conflict with logic.
   ═══════════════════════════════════════════════════════════ */

/* --- Header: fixed height, logo always top-left, no shrink --- */
.allove-header{
    height:var(--header-h) !important;
    min-height:var(--header-h) !important;
    max-height:var(--header-h) !important;
    flex-shrink:0 !important;
    flex-grow:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
}

.allove-header-inner{
    max-width:var(--container) !important;
    width:100% !important;
    height:100% !important;
    margin:0 auto !important;
    padding:0 24px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    box-sizing:border-box !important;
}

/* --- Logo: identical size on every subdomain --- */
.allove-logo{
    display:flex !important;
    align-items:center !important;
    flex-shrink:0 !important;
    margin-right:auto !important;     /* push everything else right */
    line-height:0 !important;
    text-decoration:none !important;
}

.allove-logo-img{
    height:40px !important;
    width:auto !important;
    max-height:40px !important;
    max-width:none !important;
    display:block !important;
    object-fit:contain !important;
    user-select:none !important;
    -webkit-user-drag:none !important;
}

/* --- Header actions: never wrap, stay right --- */
.allove-header-actions{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-shrink:0 !important;
    margin-left:auto !important;
}

/* --- Footer: identical fixed height, single line --- */
.allove-footer{
    height:var(--footer-h) !important;
    min-height:var(--footer-h) !important;
    max-height:var(--footer-h) !important;
    flex-shrink:0 !important;
    flex-grow:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 16px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
}

.allove-footer-text{
    margin:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:100% !important;
}

/* --- Auth card: identical width on every subdomain --- */
.allove-auth-card{
    width:100% !important;
    max-width:440px !important;
    margin:0 auto !important;
}

/* --- Auth page: predictable min-height (no jump on mobile keyboard) --- */
.allove-auth-page{
    min-height:calc(100vh - var(--header-h) - var(--footer-h)) !important;
    box-sizing:border-box !important;
}

/* --- Mobile: smaller but still proportional --- */
@media (max-width:639px){
    .allove-header-inner{padding:0 16px !important;}
    .allove-logo-img{
        height:32px !important;
        max-height:32px !important;
    }
    .allove-header-action{padding:8px 10px !important;font-size:13px !important;}
    .allove-header-action-text{display:none !important;}
    .allove-footer-text{font-size:11px !important;letter-spacing:.8px !important;}
    .allove-auth-card{max-width:100% !important;}
}
