/* =========================================
   JUNIN AUTO SERVICE - Admin Panel CSS
   Design Premium - Preto & Dourado
   ========================================= */

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

:root {
    /* Cores Principais - Guia Junin */
    --gold-primary: #F6C53A;
    --gold-intense: #FF9F00;
    --gold-light: #FEC447;
    --gold-neon: #FFD347;
    --bronze: #8C5B2F;

    /* Pretos e Cinzas */
    --black-deep: #000000;
    --black-soft: #111111;
    --black-card: #1B1B1B;
    --gray-steel: #4A4A4A;
    --gray-metallic: #D9D9D9;
    --gray-medium: #2A2A2A;

    /* Gradientes */
    --gradient-gold: linear-gradient(135deg, #F6C53A 0%, #FF9F00 100%);
    --gradient-gold-hover: linear-gradient(135deg, #FF9F00 0%, #F6C53A 100%);
    --gradient-neon: linear-gradient(135deg, #FFD347 0%, #FEC447 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1B1B1B 100%);
    --gradient-card: linear-gradient(145deg, #1B1B1B 0%, #111111 100%);

    /* Status */
    --success: #22c55e;
    --warning: #F6C53A;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #1B1B1B;
    --bg-elevated: #2A2A2A;

    /* Texto */
    --text-primary: #FFFFFF;
    --text-secondary: #D9D9D9;
    --text-muted: #6B6B6B;
    --text-gold: #F6C53A;

    /* Bordas */
    --border-color: #2A2A2A;
    --border-gold: #F6C53A;
    --border-metallic: rgba(217, 217, 217, 0.2);

    /* Sombras Premium */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 30px rgba(246, 197, 58, 0.3);
    --shadow-glow: 0 0 40px rgba(246, 197, 58, 0.15);

    /* Layout */
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Premium */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-steel);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* =========================================
   LOGIN SCREEN - Premium Design
   ========================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-deep);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Effects */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(246, 197, 58, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 159, 0, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Geometric Pattern */
.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(246, 197, 58, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 197, 58, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.login-box {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-metallic);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Gold accent line */
.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 0 0 4px 4px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 20px rgba(246, 197, 58, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Login Form Inputs - Premium Dark */
.login-box .form-group {
    margin-bottom: 20px;
}

.login-box .form-group label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="text"],
.login-box .form-control {
    background: var(--bg-secondary) !important;
    background-color: var(--bg-secondary) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.login-box input:hover,
.login-box .form-control:hover {
    border-color: var(--gray-steel) !important;
    background: var(--bg-elevated) !important;
}

.login-box input:focus,
.login-box .form-control:focus {
    border-color: var(--gold-primary) !important;
    background: var(--bg-elevated) !important;
    box-shadow: 0 0 0 4px rgba(246, 197, 58, 0.15), 0 0 20px rgba(246, 197, 58, 0.1) !important;
}

.login-box input:-webkit-autofill,
.login-box input:-webkit-autofill:hover,
.login-box input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--bg-secondary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    caret-color: var(--gold-primary);
}

/* Password Toggle Button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--gold-primary);
}

.password-toggle:focus {
    outline: none;
    color: var(--gold-primary);
}

.password-toggle i {
    font-size: 16px;
}

/* Login Button Premium */
.login-box .btn-primary,
.login-box button[type="submit"] {
    width: 100%;
    padding: 16px 24px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 12px;
    background: var(--gradient-gold) !important;
    color: var(--black-deep) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(246, 197, 58, 0.35);
}

.login-box .btn-primary:hover,
.login-box button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(246, 197, 58, 0.45);
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    display: none;
}

.login-error.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =========================================
   ADMIN LAYOUT - Premium Design
   ========================================= */

.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* =========================================
   SIDEBAR - Premium Dark
   ========================================= */

.sidebar {
    width: var(--sidebar-width);
    background: var(--gradient-dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-metallic);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-metallic);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(246, 197, 58, 0.4));
}

.sidebar-header .badge {
    background: var(--gradient-gold);
    color: var(--black-deep);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    margin: 4px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    font-weight: 500;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-gold);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.nav-item:hover {
    background: rgba(246, 197, 58, 0.08);
    color: var(--gold-primary);
}

.nav-item:hover::before {
    height: 50%;
}

.nav-item.active {
    background: rgba(246, 197, 58, 0.12);
    color: var(--gold-primary);
}

.nav-item.active::before {
    height: 70%;
}

.nav-item.active i {
    color: var(--gold-primary);
}

.nav-item i {
    width: 22px;
    font-size: 18px;
    text-align: center;
    transition: color 0.3s ease;
}

.nav-item span {
    font-size: 14px;
}

.nav-divider {
    height: 1px;
    background: var(--border-metallic);
    margin: 16px 24px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-metallic);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-deep);
    font-size: 18px;
    box-shadow: var(--shadow-gold);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 500;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: scale(1.05);
}

/* =========================================
   MAIN CONTENT
   ========================================= */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-primary);
}

/* =========================================
   TOP BAR - Premium
   ========================================= */

.top-bar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.btn-menu {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-menu:hover {
    background: var(--bg-elevated);
    color: var(--gold-primary);
}

.page-title {
    flex: 1;
}

.page-title h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-card);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gradient-gold);
    color: var(--black-deep);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

.current-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.current-date i {
    color: var(--gold-primary);
}

/* Page Content */
.page-content {
    padding: 28px;
    background: var(--bg-primary);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.page.active {
    display: block;
}

/* =========================================
   COMPONENTS - Premium Design
   ========================================= */

/* Forms - Premium */
.form-group {
    margin-bottom: 24px;
}

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

.label-hint {
    font-weight: 400;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Input loading state */
.form-control.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cstyle%3E.spinner %7B animation: rotate 1s linear infinite; transform-origin: center; %7D @keyframes rotate %7B 100%25 %7B transform: rotate(360deg); %7D %7D%3C/style%3E%3Ccircle class='spinner' cx='12' cy='12' r='10' stroke='%23F6C53A' stroke-width='2' fill='none' stroke-dasharray='31.4 31.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Override para campos com validação - texto preto */
input.valid,
input.invalid,
input.info,
input.loading {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
}

.form-control:hover,
input:hover,
textarea:hover,
select:hover {
    border-color: var(--gray-steel) !important;
    background: var(--bg-elevated) !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 3px rgba(246, 197, 58, 0.15), var(--shadow-glow) !important;
    background: var(--bg-elevated) !important;
}

/* Autofill styles - Premium Dark */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Autofill com validação - força texto preto */
input.valid:-webkit-autofill,
input.valid:-webkit-autofill:hover,
input.valid:-webkit-autofill:focus,
input.info:-webkit-autofill,
input.info:-webkit-autofill:hover,
input.info:-webkit-autofill:focus,
input.invalid:-webkit-autofill,
input.invalid:-webkit-autofill:hover,
input.invalid:-webkit-autofill:focus {
    -webkit-text-fill-color: #000000 !important;
    caret-color: #000000 !important;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23F6C53A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Buttons - Premium Gold */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--black-deep);
    box-shadow: 0 4px 15px rgba(246, 197, 58, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(246, 197, 58, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* Cards - Premium */
.card {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-metallic);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(246, 197, 58, 0.2);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--gold-primary);
    font-size: 18px;
}

.card-body {
    padding: 24px;
}

/* Tables - Premium */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.table td {
    color: var(--text-secondary);
    font-size: 14px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(246, 197, 58, 0.05);
}

.table tbody tr:hover td {
    color: var(--text-primary);
}

.table tbody tr.row-inactive {
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.02);
}

.table tbody tr.row-inactive td {
    color: var(--text-muted);
}

/* Status Badges - Premium */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(246, 197, 58, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(246, 197, 58, 0.3);
}

.status-confirmed {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-paid {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* =========================================
   KPI CARDS - Premium Gold Design
   ========================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-metallic);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-gold);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(246, 197, 58, 0.3);
}

.kpi-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.kpi-icon.gold {
    background: rgba(246, 197, 58, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(246, 197, 58, 0.3);
}

.kpi-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.kpi-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.kpi-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.kpi-icon.orange {
    background: rgba(255, 159, 0, 0.15);
    color: var(--gold-intense);
    border: 1px solid rgba(255, 159, 0, 0.3);
}

.kpi-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.kpi-change.positive {
    color: #4ade80;
}

.kpi-change.positive::before {
    content: '↑';
}

.kpi-change.negative {
    color: #f87171;
}

.kpi-change.negative::before {
    content: '↓';
}

/* =========================================
   DASHBOARD GRID - Premium
   ========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-grid .card:first-child {
    grid-column: span 2;
}

.card-small {
    grid-column: span 1;
}

/* Chart */
.chart-container {
    position: relative;
    height: 320px;
    padding: 10px 0;
}

/* Payment Stats - Premium */
.payment-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: rgba(246, 197, 58, 0.3);
    background: var(--bg-elevated);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #4ade80;
    font-size: 16px;
}

/* Upcoming List - Premium */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.upcoming-item:hover {
    border-color: rgba(246, 197, 58, 0.3);
    background: var(--bg-elevated);
    transform: translateX(4px);
}

.upcoming-time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--gold-primary);
    min-width: 65px;
    font-size: 14px;
}

.upcoming-info {
    flex: 1;
}

.upcoming-customer {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.upcoming-service {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =========================================
   FILTERS - Premium
   ========================================= */

.page-header {
    margin-bottom: 24px;
}

.filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filters .form-control {
    width: auto;
    min-width: 160px;
}

/* =========================================
   PAGINATION - Premium
   ========================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination button {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination button:hover {
    background: var(--bg-elevated);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.pagination button.active {
    background: var(--gradient-gold);
    color: var(--black-deep);
    border-color: var(--gold-primary);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   MODAL - Premium
   ========================================= */

/* Modal Backdrop - usado quando criamos modais via JavaScript */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.modal-backdrop .modal {
    position: relative;
    display: block;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-metallic);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: modalSlideIn 0.3s ease;
}

.modal-backdrop .modal.modal-lg {
    max-width: 900px;
}

.modal-backdrop .modal.modal-xl {
    max-width: 1100px;
}

/* Modal original - para uso com .show class */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-metallic);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
}

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

/* =========================================
   BOOKING DETAILS MODAL
   ========================================= */

.booking-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.booking-details .detail-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.booking-details .detail-group:last-of-type {
    border-bottom: none;
}

.booking-details .detail-group label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 100px;
}

.booking-details .detail-group span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

.booking-details h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin: 20px 0 10px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.booking-details hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}

.booking-details .status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-details + div {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.booking-details + div select {
    margin-bottom: 12px;
}

/* Notes Section - Observações do Cliente */
.booking-details .notes-section {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

.booking-details .notes-section label {
    color: #EAB308;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.booking-details .notes-content {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* =========================================
   TOAST - Premium
   ========================================= */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    color: white;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.toast.success,
.toast-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.toast.error,
.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.toast.warning,
.toast-warning {
    background: linear-gradient(135deg, rgba(246, 197, 58, 0.2) 0%, rgba(255, 159, 0, 0.2) 100%);
    border-color: rgba(246, 197, 58, 0.4);
    color: var(--gold-primary);
}

.toast-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.toast.show {
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================================
   UTILITIES
   ========================================= */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: #F59E0B;
}

.text-purple {
    color: #8B5CF6;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid .card:first-child {
        grid-column: span 1;
    }
}

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

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

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

    .btn-menu {
        display: block;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filters .form-control {
        width: 100%;
    }

    /* Top Bar Mobile - Hero Experience */
    .top-bar {
        padding: 0 16px;
        gap: 12px;
    }

    .page-title h1 {
        font-size: 16px;
        letter-spacing: 0;
    }

    /* Esconder sino e data no mobile */
    .notifications,
    .current-date {
        display: none !important;
    }

    .page-content {
        padding: 16px;
    }

    /* Botão filtro - escondido por padrão no mobile */
    .btn-filter-mobile {
        display: none !important;
    }

    /* Mostrar botão filtro quando página de fila estiver ativa */
    body.page-queue-active .btn-filter-mobile {
        display: flex !important;
    }
}

/* =========================================
   CALENDAR - Premium Dark & Gold Design
   ========================================= */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    border: 1px solid var(--border-metallic);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav .btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 14px;
    font-size: 14px;
}

.calendar-nav .btn:hover {
    background: var(--bg-card);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.calendar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 16px;
}

.btn-today {
    padding: 10px 20px;
    border: 1px solid var(--gold-primary);
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gold-primary);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.btn-today:hover {
    background: var(--gradient-gold);
    border-color: var(--gold-primary);
    color: var(--black-deep);
    box-shadow: var(--shadow-gold);
}

.calendar-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label,
.filter-status-group label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.filter-group select,
.filter-status-group select {
    min-width: 150px;
}

.calendar-views {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.btn-view {
    padding: 10px 18px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
}

.btn-view:last-child {
    border-right: none;
}

.btn-view:hover {
    background: var(--bg-elevated);
    color: var(--gold-primary);
}

.btn-view.active {
    background: var(--gradient-gold);
    color: var(--black-deep);
}

/* Calendar Container */
.calendar-container {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-metallic);
}

/* Week View */
.week-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.time-gutter {
    width: 70px;
    min-width: 70px;
    border-right: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.week-day-header {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    border-right: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.week-day-header:last-child {
    border-right: none;
}

.week-day-header:hover {
    background: rgba(246, 197, 58, 0.05);
}

.week-day-header .day-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-day-header .day-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 6px;
}

.week-day-header.today {
    background: rgba(246, 197, 58, 0.08);
}

.week-day-header.today .day-name {
    color: var(--gold-primary);
}

.week-day-header.today .day-number {
    background: var(--gradient-gold);
    color: var(--black-deep);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    box-shadow: var(--shadow-gold);
}

.week-grid {
    display: flex;
    background: var(--bg-card);
}

.time-slots {
    width: 70px;
    min-width: 70px;
    border-right: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.time-slot {
    height: 60px;
    padding: 4px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.week-columns {
    display: flex;
    flex: 1;
}

.week-column {
    flex: 1;
    position: relative;
    border-right: 1px solid var(--border-color);
    min-height: 840px;
    background: var(--bg-card);
}

.week-column:last-child {
    border-right: none;
}

.week-column:hover {
    background: rgba(246, 197, 58, 0.02);
}

.hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-primary);
    z-index: 10;
    box-shadow: 0 0 10px var(--gold-primary);
}

.current-time-line::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -5px;
    width: 12px;
    height: 12px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-primary);
}

/* Calendar Events - Premium */
.calendar-event {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    cursor: pointer;
    overflow: visible;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    border: none;
    min-height: 65px;
}

.calendar-event:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 15;
}

.calendar-event .event-time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 11px;
}

.calendar-event .event-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event .event-service {
    font-size: 10px;
    opacity: 0.85;
    margin-top: 3px;
    line-height: 1.4;
}

/* Box Colors - Premium Gold Theme */
.calendar-event.box-1 {
    background: linear-gradient(135deg, #F6C53A 0%, #FF9F00 100%);
    color: var(--black-deep);
    border-left: 4px solid #E5A800;
    box-shadow: 0 4px 12px rgba(246, 197, 58, 0.3);
}

.calendar-event.box-2 {
    background: linear-gradient(135deg, #F6C53A 0%, #FF9F00 100%);
    color: var(--black-deep);
    border-left: 4px solid #E5A800;
    box-shadow: 0 4px 12px rgba(246, 197, 58, 0.3);
}

.calendar-event.box-3 {
    background: linear-gradient(135deg, #F6C53A 0%, #FF9F00 100%);
    color: var(--black-deep);
    border-left: 4px solid #E5A800;
    box-shadow: 0 4px 12px rgba(246, 197, 58, 0.3);
}

/* Status opacity */
.calendar-event.status-pending {
    opacity: 0.75;
}

.calendar-event.status-cancelled {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Compact Event Design */
.calendar-event.compact {
    min-height: 26px;
    height: 26px !important;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.calendar-event.compact:hover {
    transform: scale(1.02);
    z-index: 20;
}

.event-compact-content {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow: hidden;
}

.event-queue {
    font-weight: 800;
    font-size: 11px;
    min-width: 18px;
    text-align: center;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 1px 4px;
}

.event-time-short {
    font-weight: 700;
    font-size: 10px;
    font-family: 'Montserrat', monospace;
    opacity: 0.9;
}

.event-name {
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.event-store {
    font-size: 9px;
    opacity: 0.75;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event.compact .fa-sticky-note {
    font-size: 10px;
    opacity: 0.7;
}

/* Day View - Premium */
.day-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.day-column-header {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.day-column-header .day-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-column-header .day-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 8px;
}

.day-grid {
    display: flex;
    background: var(--bg-card);
}

.day-events {
    flex: 1;
    position: relative;
    min-height: 840px;
}

/* Month View - Premium */
.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.month-day-name {
    padding: 14px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-card);
}

.month-day {
    min-height: 110px;
    padding: 10px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.month-day:hover {
    background: rgba(246, 197, 58, 0.05);
}

.month-day:nth-child(7n) {
    border-right: none;
}

.month-day.other-month {
    background: rgba(0, 0, 0, 0.3);
}

.month-day.other-month .month-day-number {
    color: var(--text-muted);
}

.month-day.today {
    background: rgba(246, 197, 58, 0.08);
}

.month-day.today .month-day-number {
    background: var(--gradient-gold);
    color: var(--black-deep);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.month-day-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.month-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.month-event {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.month-event:hover {
    transform: translateX(2px);
}

.month-event.box-1 {
    background: rgba(246, 197, 58, 0.2);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}

.month-event.box-2 {
    background: rgba(246, 197, 58, 0.2);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}

.month-event.box-3 {
    background: rgba(246, 197, 58, 0.2);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}

.month-event.more {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 600;
    border-left: 3px solid var(--gray-steel);
}

/* Calendar Legend - Premium */
.calendar-legend {
    display: flex;
    gap: 24px;
    padding: 18px 24px;
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    margin-top: 20px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    border: 1px solid var(--border-metallic);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

.legend-color.box-1 {
    background: var(--gradient-gold);
    box-shadow: 0 2px 8px rgba(246, 197, 58, 0.4);
}

.legend-color.box-2 {
    background: var(--gradient-gold);
    box-shadow: 0 2px 8px rgba(246, 197, 58, 0.4);
}

.legend-color.box-3 {
    background: var(--gradient-gold);
    box-shadow: 0 2px 8px rgba(246, 197, 58, 0.4);
}

.legend-color.status-pending {
    background: rgba(246, 197, 58, 0.3);
    border: 2px dashed var(--gold-primary);
}

.legend-color.status-confirmed {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.legend-color.status-completed {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.legend-color.status-cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Botão Toggle de Filtros - Escondido no Desktop */
.btn-filter-toggle {
    display: none;
}

/* Calendar Responsive */
@media (max-width: 768px) {
    /* Botão Toggle de Filtros - Mobile */
    .btn-filter-toggle {
        display: flex;
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--gold-primary);
        font-size: 1.25rem;
        cursor: pointer;
        z-index: 100;
        transition: all 0.2s ease;
    }

    .btn-filter-toggle:hover,
    .btn-filter-toggle.active {
        color: var(--gold-intense);
    }

    .btn-filter-toggle.active {
        transform: scale(1.1);
    }

    #page-bookings {
        position: relative;
    }

    .calendar-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .calendar-nav {
        justify-content: center;
    }

    /* Esconder título da data e botões de view no mobile */
    .calendar-title {
        display: none !important;
    }

    .calendar-views {
        display: none !important;
    }

    /* Filtros ocultos por padrão no mobile */
    .calendar-filters {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        background: var(--bg-card);
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
    }

    .calendar-filters.show {
        display: flex;
    }

    .calendar-filters .filter-group {
        width: 100%;
    }

    .calendar-filters .filter-group label {
        min-width: 70px;
    }

    .week-day-header .day-number {
        font-size: 18px;
    }

    /* Header do dia - reduzir altura em 50% no mobile */
    .day-column-header {
        padding: 10px;
    }

    .day-column-header .day-name {
        font-size: 11px;
    }

    .day-column-header .day-number {
        font-size: 24px;
        margin-top: 4px;
    }

    /* Esconder barra de rolagem no mobile */
    .day-grid,
    .week-grid {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .day-grid::-webkit-scrollbar,
    .week-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }

    .calendar-legend {
        display: none !important;
    }

    .time-gutter,
    .time-slots {
        width: 50px;
        min-width: 50px;
    }
}

/* =========================================
   AUDIT LOGS PAGE
   ========================================= */

.audit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-row .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-row .filter-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-row .filter-group:last-child {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-end;
}

/* Badges for actions */
.badge-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.badge-secondary {
    background: var(--gray-steel);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Audit details modal */
.audit-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audit-details .detail-section {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 16px;
}

.audit-details .detail-section h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.audit-details pre {
    margin: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    white-space: pre-wrap;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
    .audit-stats {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row .filter-group {
        width: 100%;
    }

    .filter-row .filter-group select,
    .filter-row .filter-group input {
        width: 100%;
    }

    .filter-row .filter-group:last-child {
        flex-direction: column;
    }
}

/* =========================================
   CUSTOMERS PAGE - Premium Design
   ========================================= */

/* KPI Sublabel */
.kpi-sublabel {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-badge {
    background: rgba(246, 197, 58, 0.15);
    color: var(--gold-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(246, 197, 58, 0.3);
}

/* Margin Top */
.mt-24 {
    margin-top: 24px;
}

/* Filters Bar - Premium */
.filters-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

.search-input,
input.search-input,
input[type="text"].search-input {
    width: 100%;
    padding: 12px 16px 12px 48px !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(246, 197, 58, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Customer Info in Table - Premium */
.customer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-gold);
    color: var(--black-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(246, 197, 58, 0.3);
}

.customer-avatar.vip {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.customer-email {
    font-size: 12px;
    color: var(--text-muted);
}

/* Customer Avatar Large - Modal */
.customer-avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: var(--gradient-gold);
    color: var(--black-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(246, 197, 58, 0.4);
}

/* Service Count Badge */
.service-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.service-count.high {
    background: rgba(246, 197, 58, 0.15);
    color: var(--gold-primary);
    border-color: rgba(246, 197, 58, 0.3);
}

/* Money Value */
.money-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--gold-primary);
}

.money-value.zero {
    color: var(--text-muted);
}

/* Last Service Date */
.last-service {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.last-service-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.last-service-ago {
    font-size: 11px;
    color: var(--text-muted);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    cursor: pointer;
    position: relative;
    z-index: 10;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--gold-primary);
    color: var(--black-deep);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-action.view:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-action.edit {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-action.edit:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
}

/* Pagination Wrapper */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-info strong {
    color: var(--text-primary);
}

/* Top Customers Grid */
.top-customers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.top-customer-card {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.top-customer-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.top-customer-card .rank {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient-gold);
    color: var(--black-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(246, 197, 58, 0.4);
}

.top-customer-card .rank.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.top-customer-card .rank.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.top-customer-card .rank.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: white;
}

.top-customer-card .avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-gold);
    color: var(--black-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 12px auto 12px;
}

.top-customer-card .name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-customer-card .total {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--gold-primary);
}

.top-customer-card .services {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Loading Placeholder */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Customer Detail Modal - Premium */
.modal-lg {
    max-width: 900px;
}

.customer-detail-header {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.customer-detail-avatar {
    flex-shrink: 0;
}

.customer-detail-info {
    flex: 1;
}

.customer-detail-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.customer-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.customer-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.customer-detail-meta i {
    color: var(--gold-primary);
    width: 16px;
}

/* Customer Stats Cards */
.customer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.customer-stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.customer-stat-card .value {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.customer-stat-card .value.gold {
    color: var(--gold-primary);
}

.customer-stat-card .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title i {
    color: var(--gold-primary);
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.service-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px;
}

.service-tag .name {
    color: var(--text-secondary);
    font-size: 13px;
}

.service-tag .count {
    background: var(--gold-primary);
    color: var(--black-deep);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* History Table Compact */
.table.compact th,
.table.compact td {
    padding: 12px 14px;
    font-size: 13px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Text utilities */
.text-gold {
    color: var(--gold-primary) !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.py-4 {
    padding-top: 24px;
    padding-bottom: 24px;
}

.mb-2 {
    margin-bottom: 8px;
}

.d-block {
    display: block;
}

/* Badge info */
.badge-info {
    background: var(--info);
    color: white;
}

/* Responsive Customers */
@media (max-width: 1200px) {
    .top-customers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        gap: 12px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

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

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

    .customer-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .customer-detail-meta {
        justify-content: center;
    }

    .pagination-wrapper {
        flex-direction: column;
        gap: 16px;
    }

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

/* =========================================
   CUSTOMER DETAIL MODAL - PREMIUM ENHANCED
   ========================================= */

/* Modal Extra Large */
.modal-xl {
    max-width: 1100px;
    width: 95%;
}

.customer-detail-modal {
    padding: 0 !important;
}

/* Profile Header */
.customer-profile-header {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--gradient-card);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -24px -24px 24px -24px;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--black-deep);
    position: relative;
    box-shadow: var(--shadow-gold);
}

.profile-avatar.vip {
    border: 3px solid var(--gold-primary);
}

.profile-avatar .vip-crown {
    position: absolute;
    top: -10px;
    right: -5px;
    background: var(--gold-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--black-deep);
}

.profile-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-gold);
    color: var(--black-deep);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item i {
    color: var(--gold-primary);
    width: 16px;
    text-align: center;
}

/* Next Appointment Card */
.next-appointment-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.appointment-icon {
    width: 50px;
    height: 50px;
    background: var(--success);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.appointment-info {
    flex: 1;
}

.appointment-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 6px;
}

.appointment-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.appointment-details strong {
    font-size: 18px;
    color: var(--text-primary);
}

.appointment-datetime,
.appointment-store {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.appointment-datetime i,
.appointment-store i {
    color: var(--success);
}

/* Detail Stats Grid */
.customer-detail-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.detail-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.detail-stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.detail-stat-card.primary .stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.detail-stat-card.success .stat-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.detail-stat-card.warning .stat-icon {
    background: rgba(246, 197, 58, 0.15);
    color: var(--warning);
}

.detail-stat-card.danger .stat-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.detail-stat-card.gold .stat-icon {
    background: rgba(246, 197, 58, 0.2);
    color: var(--gold-primary);
}

.detail-stat-card.info .stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.detail-stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.detail-stat-card .stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.detail-stat-card.gold .stat-value {
    color: var(--gold-primary);
}

.detail-stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Customer Info Grid */
.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-card-header i {
    color: var(--gold-primary);
}

.info-card-body {
    padding: 16px;
}

/* Favorite Services List */
.favorite-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorite-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.favorite-service-item:first-child .service-rank {
    background: var(--gradient-gold);
    color: var(--black-deep);
}

.favorite-service-item .service-info {
    flex: 1;
    min-width: 0;
}

.favorite-service-item .service-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-service-item .service-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.service-count-badge {
    background: var(--gold-primary);
    color: var(--black-deep);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

/* Stores List */
.stores-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(246, 197, 58, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 14px;
    flex-shrink: 0;
}

.store-item .store-info {
    flex: 1;
}

.store-item .store-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.store-item .store-visits {
    font-size: 11px;
    color: var(--text-muted);
}

.store-last-visit {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Period Info */
.period-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.period-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.period-label {
    font-size: 13px;
    color: var(--text-muted);
}

.period-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* History Section */
.history-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.history-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-title i {
    color: var(--gold-primary);
}

.history-filters {
    display: flex;
    gap: 8px;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.filter-tab.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--black-deep);
}

.filter-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-size: 10px;
}

.filter-tab.active .count {
    background: rgba(0, 0, 0, 0.2);
}

.history-content {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

/* Bookings Timeline */
.bookings-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.booking-status-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.booking-card.status-completed .booking-status-indicator {
    background: var(--success);
}

.booking-card.status-pending .booking-status-indicator,
.booking-card.status-confirmed .booking-status-indicator {
    background: var(--warning);
}

.booking-card.status-cancelled .booking-status-indicator {
    background: var(--danger);
}

.booking-main {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
}

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

.booking-service {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-service i {
    color: var(--gold-primary);
}

.booking-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 4px 10px;
    border-radius: 6px;
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-item i {
    color: var(--text-muted);
    width: 14px;
    font-size: 12px;
}

.detail-item.price {
    color: var(--gold-primary);
    font-weight: 600;
}

.detail-item.price i {
    color: var(--gold-primary);
}

.booking-notes {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--bg-elevated);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.booking-notes i {
    color: var(--warning);
    margin-top: 2px;
}

.booking-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-completed,
.status-badge.status-paid {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-badge.status-pending,
.status-badge.status-confirmed {
    background: rgba(246, 197, 58, 0.15);
    color: var(--warning);
}

.status-badge.status-cancelled,
.status-badge.status-refunded {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Empty State in History */
.history-content .empty-state {
    padding: 40px 20px;
}

.history-content .empty-state i {
    font-size: 40px;
}

/* Responsive for Customer Detail Modal */
@media (max-width: 1200px) {
    .customer-detail-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 992px) {
    .modal-xl {
        max-width: 95%;
        margin: 10px;
    }

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

    .customer-info-grid {
        grid-template-columns: 1fr;
    }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .customer-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-name {
        justify-content: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .next-appointment-card {
        flex-direction: column;
        text-align: center;
    }

    .appointment-details {
        justify-content: center;
    }

    .customer-detail-stats {
        grid-template-columns: 1fr 1fr;
    }

    .booking-card {
        flex-direction: column;
    }

    .booking-status {
        flex-direction: row;
        align-items: center;
    }

    .filter-tab {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* =========================================
   CUSTOMER DETAIL PAGE
   ========================================= */

/* Back Header */
.page-back-header {
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--bg-elevated);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-back i {
    font-size: 16px;
}

/* Customer Detail Page specific styles */
#page-customer-detail .customer-profile-header {
    margin: 0 0 24px 0;
    border-radius: var(--border-radius-lg);
}

#page-customer-detail .customer-detail-stats {
    margin-bottom: 24px;
}

#page-customer-detail .customer-info-grid {
    margin-bottom: 24px;
}

#page-customer-detail .history-section {
    margin-bottom: 24px;
}

/* Customer Actions Bar */
.customer-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 24px;
}

.customer-actions-bar .btn {
    min-width: 150px;
}

@media (max-width: 768px) {
    .customer-actions-bar {
        flex-direction: column;
        gap: 12px;
    }

    .customer-actions-bar .btn {
        width: 100%;
    }
}

/* History Filter Tabs */
.history-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-filter-tabs .filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.history-filter-tabs .filter-tab:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.history-filter-tabs .filter-tab.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--black-deep);
}

.history-filter-tabs .filter-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-size: 10px;
}

.history-filter-tabs .filter-tab.active .count {
    background: rgba(0, 0, 0, 0.2);
}

/* Booking History Table Cells */
.booking-code-cell {
    background: var(--bg-elevated);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.date-time-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-time-cell .date {
    font-weight: 500;
    color: var(--text-primary);
}

.date-time-cell .time {
    font-size: 12px;
    color: var(--text-muted);
}

.service-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-cell i {
    color: var(--gold-primary);
}

.status-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.status-cell-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.status-cell-vertical .status {
    min-width: 120px;
    text-align: center;
    display: inline-block;
}

/* Garantir centralização da célula de status */
td:has(.status-cell-vertical),
.history-table td:last-child {
    text-align: center !important;
    vertical-align: middle;
}

td .status-cell-vertical {
    margin: 0 auto;
}

/* History Table - Status Column */
.history-table td:last-child {
    padding: 12px 8px;
}

.history-table .status-cell-vertical {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

/* Button Notes - Botão de observações */
.btn-notes {
    background: transparent;
    border: none;
    color: #EAB308;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-notes:hover {
    background: rgba(234, 179, 8, 0.15);
    transform: scale(1.1);
}

.btn-notes:active {
    transform: scale(0.95);
}

/* Modal de Notas */
.notes-modal-content {
    padding: 8px 0;
}

.notes-booking-code {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--gold-primary);
    padding: 8px 12px;
    background: rgba(246, 197, 58, 0.1);
    border-radius: 6px;
    margin-bottom: 16px;
    display: inline-block;
}

.notes-booking-code i {
    margin-right: 4px;
    opacity: 0.7;
}

.notes-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}

/* Modal Footer para notas - sem fundo */
.notes-modal-footer {
    background: transparent !important;
    border-top: none !important;
    padding: 16px 24px 24px !important;
    display: flex;
    justify-content: center !important;
}

.notes-modal-footer .btn {
    min-width: 120px;
}

/* Responsive History Table */
@media (max-width: 992px) {
    .history-filter-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    #page-customer-detail .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .history-filter-tabs .filter-tab {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* =========================================
   PAGE TABS - Services/Landing Pages
   ========================================= */

.page-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    width: fit-content;
}

.tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.tab-btn.active {
    background: var(--gradient-gold);
    color: var(--black-deep);
    font-weight: 600;
}

.tab-btn i {
    font-size: 16px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =========================================
   LANDING PAGES MODULE
   ========================================= */

/* Landing Page Info Cell */
.landing-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-info .name {
    font-weight: 600;
    color: var(--text-primary);
}

.landing-info .slug {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Stats Cell */
.stats-cell {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-item .value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.stat-item .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Theme Color Preview */
.theme-color {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
}

.color-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

/* Landing Page Form */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.form-section {
    background: var(--bg-elevated);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.form-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Items Editor */
.items-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.item-row input {
    flex: 1;
}

.item-row .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-row .btn-icon:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-add-item {
    padding: 8px 16px;
    border: 1px dashed var(--border-color);
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-item:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Code Editor */
.code-editor {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    background: var(--black-deep);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    min-height: 120px;
    resize: vertical;
    color: var(--text-primary);
}

/* Landing Page Preview */
.landing-preview-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: var(--border-radius);
    background: white;
}

/* Empty State for Landing Pages */
.empty-landing-pages {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-landing-pages i {
    font-size: 48px;
    color: var(--gray-steel);
    margin-bottom: 16px;
}

.empty-landing-pages h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-landing-pages p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Conversion Rate */
.conversion-rate {
    font-weight: 600;
}

.conversion-rate.good {
    color: var(--success);
}

.conversion-rate.medium {
    color: var(--warning);
}

.conversion-rate.low {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .page-tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }

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

    .stats-cell {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================
   LANDING PAGE EDITOR - Full Page
   ========================================= */

/* Header Navigation */
.page-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-back:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--gold-primary);
}

.btn-back i {
    font-size: 16px;
}

.page-header-actions {
    display: flex;
    gap: 12px;
}

/* Editor Layout - Two Columns */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

.editor-form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-preview-column {
    position: sticky;
    top: 90px;
}

/* Editor Sections */
.editor-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.editor-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    cursor: default;
}

.editor-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.editor-section-header h3 i {
    color: var(--gold-primary);
    font-size: 16px;
}

.editor-section-header.collapsed {
    cursor: pointer;
    border-bottom: none;
}

.editor-section-header.collapsed:hover {
    background: var(--bg-card);
}

.editor-section-header .toggle-icon {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.editor-section-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.editor-section-body {
    padding: 20px;
}

.editor-section-body.collapsed {
    display: none;
}

/* Form Hint */
.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* Input with Prefix */
.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
}

.input-with-prefix .form-control {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Input with Suffix */
.input-with-suffix {
    display: flex;
    align-items: stretch;
}

.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.input-with-suffix .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* Modal Medium Size */
.modal-content.modal-md {
    max-width: 600px;
}

.modal-content.modal-sm,
.modal.modal-sm {
    max-width: 420px;
}

/* Form Row */
.form-row {
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.flex-1 {
    flex: 1;
}

/* File Upload Area - Hero Style */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--gold-primary);
    background: rgba(246, 197, 58, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--gold-primary);
    background: rgba(246, 197, 58, 0.1);
    transform: scale(1.02);
}

.file-upload-content {
    color: var(--text-muted);
}

.file-upload-content i {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-content p {
    margin: 0;
    font-size: 14px;
}

.file-upload-content a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
}

.file-upload-content a:hover {
    text-decoration: underline;
}

.file-selected {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.file-selected .file-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.file-selected .file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.file-selected .file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.text-success {
    color: var(--success) !important;
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-picker {
    width: 48px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-picker::-webkit-color-swatch {
    border-radius: 6px;
    border: none;
}

.color-hex-input {
    width: 100px;
    font-family: monospace;
    text-transform: uppercase;
}

/* Toggle Switch */
.toggle-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
}

.toggle-label input,
.toggle-label input[type="checkbox"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.toggle-switch {
    display: inline-block !important;
    width: 48px !important;
    height: 26px !important;
    min-width: 48px !important;
    min-height: 26px !important;
    background: var(--bg-elevated) !important;
    border-radius: 13px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    border: 1px solid var(--border-color) !important;
    flex-shrink: 0 !important;
}

.toggle-switch::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    background: var(--text-muted) !important;
    border-radius: 50% !important;
    top: 2px !important;
    left: 2px !important;
    transition: all 0.2s ease !important;
}

.toggle-label input:checked + .toggle-switch {
    background: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
}

.toggle-label input:checked + .toggle-switch::after {
    left: 24px !important;
    background: white !important;
}

.toggle-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

/* Items Editor Container */
.items-editor-container,
.benefits-editor-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-items-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-items-message i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.empty-items-message p {
    margin-bottom: 16px;
}

/* Item Card */
.editor-item-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    position: relative;
}

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

.editor-item-card .item-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-primary);
    background: rgba(246, 197, 58, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.editor-item-card .btn-remove-item {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.editor-item-card .btn-remove-item:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.editor-item-card .item-fields {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 12px;
}

.editor-item-card .item-fields.benefit-fields {
    grid-template-columns: 1fr;
}

/* Preview Card */
.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.preview-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-header h4 i {
    color: var(--gold-primary);
}

.preview-device-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: 8px;
}

.device-btn {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-btn:hover {
    color: var(--text-primary);
}

.device-btn.active {
    background: var(--gold-primary);
    color: var(--black-deep);
}

/* Preview Container */
.preview-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: #1a1a1a;
    min-height: 500px;
}

.preview-container.mobile .preview-frame {
    width: 375px;
    max-width: 100%;
}

.preview-container.desktop .preview-frame {
    width: 100%;
}

.preview-frame {
    background: #0a0a0a;
    border-radius: 20px;
    border: 3px solid #333;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.preview-content {
    max-height: 600px;
    overflow-y: auto;
    font-size: 12px;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.preview-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gray-steel);
}

/* Preview Landing Page Styles */
.preview-content .lp-preview {
    padding: 20px;
    color: white;
}

.preview-content .lp-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.preview-content .lp-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.preview-content .lp-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}

.preview-content .lp-intro {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    padding: 12px;
    border-left: 3px solid;
    background: rgba(255,255,255,0.03);
    margin-bottom: 20px;
}

.preview-content .lp-items-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.preview-content .lp-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 8px;
}

.preview-content .lp-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.preview-content .lp-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.preview-content .lp-item-desc {
    font-size: 11px;
    color: #888;
}

.preview-content .lp-benefits {
    margin-top: 20px;
}

.preview-content .lp-benefits-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.preview-content .lp-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-left: 2px solid;
    background: rgba(255,255,255,0.02);
}

.preview-content .lp-benefit-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.preview-content .lp-benefit-text {
    font-size: 12px;
    color: #ccc;
}

.preview-content .lp-pricing {
    margin-top: 20px;
    padding: 16px;
    border: 2px solid;
    border-radius: 12px;
    text-align: center;
}

.preview-content .lp-price-old {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.preview-content .lp-price-current {
    font-size: 28px;
    font-weight: 800;
}

.preview-content .lp-cta-btn,
.preview-content .lp-cta-button {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    color: #000;
    cursor: default;
}

/* Preview - Header Section */
.preview-content .lp-header {
    text-align: center;
    margin-bottom: 20px;
}

/* Preview - Why Section */
.preview-content .lp-why-section {
    margin: 20px 0;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
}

.preview-content .lp-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.preview-content .lp-why-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-content .lp-why-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 12px;
    color: #ccc;
}

.preview-content .lp-why-item i {
    font-size: 12px;
}

/* Preview - Benefits Grid */
.preview-content .lp-benefits-section {
    margin: 20px 0;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
}

.preview-content .lp-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.preview-content .lp-benefit-card {
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    text-align: center;
}

.preview-content .lp-benefit-card i {
    font-size: 20px;
    margin-bottom: 8px;
}

.preview-content .lp-benefit-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.preview-content .lp-benefit-card p {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

/* Preview - CTA Section */
.preview-content .lp-cta-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(246,197,58,0.05) 0%, transparent 100%);
    border-radius: 12px;
    text-align: center;
}

.preview-content .lp-cta-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.preview-content .lp-cta-section p {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.preview-content .lp-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.preview-content .lp-cta-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    font-size: 11px;
    color: #ccc;
}

/* Preview - Price Section */
.preview-content .lp-price-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    text-align: center;
}

.preview-content .lp-original-price {
    font-size: 13px;
    color: #666;
    text-decoration: line-through;
}

.preview-content .lp-price {
    font-size: 14px;
    color: #ccc;
    margin: 4px 0;
}

.preview-content .lp-price strong {
    font-size: 28px;
    font-weight: 800;
}

.preview-content .lp-savings {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 600;
    margin-top: 4px;
}

.preview-content .lp-installments {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Preview - Bottom Bar */
.preview-content .lp-bottom-bar {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-content .lp-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-content .lp-bottom-title {
    font-size: 12px;
    font-weight: 700;
    color: #000;
}

.preview-content .lp-bottom-subtitle {
    font-size: 10px;
    color: rgba(0,0,0,0.7);
}

.preview-content .lp-bottom-cta {
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Preview - Items Count */
.preview-content .lp-items-count {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 600;
}

/* Responsive Editor */
@media (max-width: 1200px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-preview-column {
        position: relative;
        top: 0;
        order: -1;
    }

    .preview-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-header-nav {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .page-header-actions {
        justify-content: stretch;
    }

    .page-header-actions .btn {
        flex: 1;
    }

    .editor-item-card .item-fields {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   LANDING PAGE EDITOR - ADDITIONAL STYLES
   ========================================= */

/* Empty State for Items/Benefits */
.empty-items-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.empty-items-state i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.empty-items-state p {
    margin-bottom: 4px;
    font-size: 14px;
}

.empty-items-state small {
    font-size: 12px;
    opacity: 0.7;
}

/* Item Card Header */
.item-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.item-drag-handle {
    color: var(--text-muted);
    cursor: grab;
    padding: 4px;
}

.item-drag-handle:active {
    cursor: grabbing;
}

.item-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(246, 197, 58, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.btn-remove-item {
    margin-left: auto;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-item:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.item-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-card-body .form-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 12px;
}

.form-group-sm {
    max-width: 100px;
}

/* Benefit Card */
.editor-benefit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: rgba(246, 197, 58, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.benefit-input {
    flex: 1;
}

.btn-remove-benefit {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-benefit:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Preview Landing Page - Extended Styles */
.lp-preview {
    --theme-color: #F6C53A;
}

.lp-header {
    text-align: center;
    margin-bottom: 24px;
}

.lp-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: var(--theme-color);
    color: #000;
}

.lp-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.lp-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.lp-intro {
    font-size: 12px;
    line-height: 1.6;
    color: #aaa;
    padding: 12px;
    border-left: 3px solid var(--theme-color);
    background: rgba(255,255,255,0.03);
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.lp-items-section {
    margin-bottom: 20px;
}

.lp-items-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.lp-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.lp-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    background: var(--theme-color);
    color: #000;
}

.lp-item-content {
    flex: 1;
    min-width: 0;
}

.lp-item-content strong {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.lp-item-content span {
    font-size: 11px;
    color: #888;
}

.lp-item-qty {
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-color);
    background: rgba(246, 197, 58, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.lp-benefits-section {
    margin-bottom: 20px;
}

.lp-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border-left: 3px solid var(--theme-color);
}

.lp-benefit i {
    color: var(--theme-color);
    font-size: 12px;
}

.lp-benefit span {
    font-size: 12px;
    color: #ccc;
}

.lp-price-section {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 2px solid var(--theme-color);
    margin-bottom: 16px;
}

.lp-original-price {
    font-size: 13px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.lp-price {
    font-size: 14px;
    color: #ccc;
}

.lp-price strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--theme-color);
    margin-top: 4px;
}

.lp-cta-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #000;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   USERS MODULE - Premium Design
   ========================================= */

/* User Profile in Modal View */
.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.user-profile .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--black-deep);
    box-shadow: var(--shadow-gold);
}

.user-details h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role-badge.super_admin {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.user-role-badge.admin {
    background: var(--gradient-gold);
    color: var(--black-deep);
}

.user-role-badge.manager {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.user-role-badge.operator {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

/* User Info Grid */
.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-secondary);
}

.user-info-item i {
    color: var(--gold-primary);
    width: 18px;
    text-align: center;
}

.user-info-item strong {
    color: var(--text-primary);
}

/* Permissions Section */
.permissions-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.permissions-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.permission-item i {
    font-size: 12px;
}

.permission-item.granted {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.permission-item.granted i {
    color: var(--success);
}

.permission-item.denied {
    background: rgba(239, 68, 68, 0.08);
    color: var(--text-muted);
}

.permission-item.denied i {
    color: var(--danger);
    opacity: 0.5;
}

/* Permissions Preview in Form */
.permissions-preview {
    background: var(--bg-elevated);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-top: 16px;
}

.permissions-preview h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.permissions-preview h4 i {
    color: var(--gold-primary);
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permissions-list .permission-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(246, 197, 58, 0.1);
    border-radius: 6px;
    font-size: 11px;
    color: var(--gold-primary);
}

.permissions-list .permission-tag i {
    font-size: 10px;
}

/* User Table Row */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell .avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-gold);
    color: var(--black-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-cell .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-cell .name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-cell .email {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-cell .email,
.contact-cell .phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-cell i {
    color: var(--text-muted);
    font-size: 12px;
    width: 14px;
}

/* Role Badge in Table */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge.super_admin {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.role-badge.admin {
    background: rgba(246, 197, 58, 0.15);
    color: var(--gold-primary);
}

.role-badge.manager {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.role-badge.operator {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

/* Store Badge in Table */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.store-badge i {
    font-size: 11px;
}

/* Status Badge */
.status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Last Login Cell */
.last-login {
    font-size: 13px;
    color: var(--text-muted);
}

.last-login.never {
    color: var(--text-muted);
    font-style: italic;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

/* KPI Icon Gold */
.kpi-icon.gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-intense));
}

/* Responsive Users Module */
@media (max-width: 768px) {
    .user-profile {
        flex-direction: column;
        text-align: center;
    }

    .user-info-grid {
        grid-template-columns: 1fr;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   BOXES / AGENDA MODULE
   ========================================= */

/* Box Info Cell */
.box-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.box-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Sort Order Badge */
.sort-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-elevated);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Slot Badge */
.slot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: rgba(246, 197, 58, 0.15);
    border: 1px solid rgba(246, 197, 58, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Occupancy Bar */
.occupancy-bar {
    position: relative;
    width: 100%;
    max-width: 120px;
    height: 24px;
    background: var(--bg-elevated);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.occupancy-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.occupancy-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Schedule Preview Card */
#schedule-preview-card {
    margin-top: 20px;
    animation: slideIn 0.3s ease;
}

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

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Schedule Slot */
.schedule-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.schedule-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.schedule-slot.available {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.schedule-slot.available .slot-status {
    color: var(--success);
}

.schedule-slot.booked {
    border-color: var(--gold-primary);
    background: rgba(246, 197, 58, 0.1);
}

.schedule-slot.booked .slot-status {
    color: var(--gold-primary);
}

.schedule-slot.blocked {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.schedule-slot.blocked .slot-status {
    color: var(--danger);
}

.slot-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.slot-status {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Color Picker Row */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.color-option.selected {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(246, 197, 58, 0.5);
}

/* Weekday Selector */
.weekday-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.weekday-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weekday-option:hover {
    border-color: var(--gold-primary);
}

.weekday-option input[type="checkbox"] {
    display: none;
}

.weekday-option input[type="checkbox"]:checked + .weekday-label {
    color: var(--gold-primary);
}

.weekday-option:has(input:checked) {
    border-color: var(--gold-primary);
    background: rgba(246, 197, 58, 0.1);
}

.weekday-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

/* Generation Info Alert */
.generation-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.generation-info i {
    color: var(--info);
    margin-top: 2px;
}

.generation-info small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

/* Responsive Boxes */
@media (max-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .box-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .occupancy-bar {
        max-width: 100%;
    }

    .weekday-selector {
        justify-content: center;
    }

    .color-options {
        justify-content: center;
    }

    .schedule-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .schedule-slot {
        padding: 8px;
    }

    .slot-time {
        font-size: 12px;
    }
}

/* =========================================
   CATÁLOGO DE SERVIÇOS
   ========================================= */

/* Duration Badges na tabela */
.duration-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.duration-badge.duration-service {
    background: linear-gradient(135deg, rgba(246, 197, 58, 0.2), rgba(255, 159, 0, 0.2));
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.duration-badge.duration-interval {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Duration Preview no Modal */
.duration-preview {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.duration-bar {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.duration-service,
.duration-interval {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    transition: flex 0.3s ease;
}

.duration-service {
    background: var(--gradient-gold);
}

.duration-interval {
    background: #3b82f6;
    color: #fff;
}

.duration-slots {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.duration-slots strong {
    color: var(--gold-primary);
}

/* Form Control Static */
.form-control-static {
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 16px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.form-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Info na tabela */
.service-info {
    line-height: 1.4;
}

.service-info strong {
    display: block;
    color: var(--text-primary);
}

.service-info small {
    font-size: 11px;
}

/* Icon Colors */
.text-gold {
    color: var(--gold-primary);
}

.text-info {
    color: #60a5fa;
}

.text-success {
    color: var(--success);
}

/* Button Group Small */
.btn-group-sm {
    display: flex;
    gap: 4px;
}

.btn-group-sm .btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    align-items: flex-start;
}

.info-item > i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F6C53A, #FF9F00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    flex-shrink: 0;
}

.info-item > div {
    flex: 1;
}

.info-item > div strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.info-item > div p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Margin utilities */
.mt-24 {
    margin-top: 24px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

/* =========================================
   FORM SECTIONS (Modal de Edição)
   ========================================= */

.form-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section-highlight {
    border-color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(246, 197, 58, 0.05), rgba(255, 159, 0, 0.02));
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-header i {
    color: var(--gold-primary);
    font-size: 16px;
}

.form-section-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-section-badge {
    margin-left: auto;
    background: var(--gradient-gold);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-steel);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-gold);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Alert Info */
.alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.alert-info i {
    color: #60a5fa;
    font-size: 16px;
    margin-top: 2px;
}

.alert-info strong {
    color: #60a5fa;
}

.alert-warning {
    background: rgba(246, 197, 58, 0.1);
    border: 1px solid rgba(246, 197, 58, 0.3);
    color: var(--gold-light);
}

/* File Status */
.file-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
}

.file-status i {
    font-size: 18px;
}

.file-status span {
    flex: 1;
    color: var(--text-secondary);
}

.file-upload-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-edit-file {
    color: var(--gold-primary);
    font-size: 13px;
}

/* Modal Large */
.modal-lg {
    max-width: 700px;
}

/* Form Hint with icon */
.form-hint i {
    margin-right: 4px;
}

/* Duration Preview Improvements */
.duration-preview {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.duration-slots {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.duration-slots i {
    margin-right: 6px;
    color: var(--gold-primary);
}

.duration-slots strong {
    color: var(--gold-primary);
    font-size: 15px;
}

/* ===================================
   ROLES / PERFIS DE ACESSO
   =================================== */

/* Section Header - Layout título + botão */
#page-roles .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

#page-roles .section-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Tabs */
.roles-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

#page-roles .tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#page-roles .tab-btn:hover {
    color: var(--text-primary);
}

#page-roles .tab-btn.active {
    background: var(--gradient-gold);
    color: var(--black-deep);
    border-radius: 8px 8px 0 0;
    border-bottom-color: var(--gold-primary);
}

/* Roles Grid */
#page-roles .roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.role-card.super-admin {
    border-color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(246, 197, 58, 0.08) 0%, var(--bg-card) 100%);
}

.role-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.role-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-primary);
    flex-shrink: 0;
}

.role-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.badge-super {
    background: var(--gradient-gold);
    color: var(--black-deep);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}

.role-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.role-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.role-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.role-stats .stat i {
    color: var(--gold-primary);
}

.role-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-role-action {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-role-action:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-role-action.btn-permissions {
    flex: 3;
}

.btn-role-action.btn-edit,
.btn-role-action.btn-delete {
    flex: 0 0 auto;
    width: 40px;
    padding: 0.75rem;
}

.btn-role-action.btn-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Permission Selector */
#page-roles .permission-selector {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

#page-roles .permission-selector label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Custom Dropdown Component */
#page-roles .custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#page-roles .custom-dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#page-roles .custom-dropdown-selected:hover {
    border-color: var(--gold-primary);
}

#page-roles .custom-dropdown.open .custom-dropdown-selected {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(246, 197, 58, 0.15);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#page-roles .custom-dropdown-selected i {
    color: var(--gold-primary);
    transition: transform 0.2s ease;
}

#page-roles .custom-dropdown.open .custom-dropdown-selected i {
    transform: rotate(180deg);
}

#page-roles .custom-dropdown-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#page-roles .custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid var(--gold-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

#page-roles .custom-dropdown.open .custom-dropdown-options {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}

#page-roles .custom-dropdown-option {
    padding: 0.75rem 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#page-roles .custom-dropdown-option:last-child {
    border-bottom: none;
}

#page-roles .custom-dropdown-option:hover {
    background-color: #2a2a2a;
    color: var(--gold-primary);
}

#page-roles .custom-dropdown-option.selected {
    background-color: rgba(246, 197, 58, 0.1);
    color: var(--gold-primary);
    font-weight: 500;
}

#page-roles .custom-dropdown-option.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Custom scrollbar for dropdown options */
#page-roles .custom-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

#page-roles .custom-dropdown-options::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

#page-roles .custom-dropdown-options::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

#page-roles .custom-dropdown-options::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

/* Modules Grid */
#page-roles .modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.module-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.module-name i {
    color: var(--gold-primary);
}

.module-toggle-all {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.module-toggle-all:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.module-actions {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.action-item:last-child {
    border-bottom: none;
}

.action-label {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.action-label.danger {
    color: var(--danger);
}

/* Toggle Switch */
#page-roles .toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

#page-roles .toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

#page-roles .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

#page-roles .toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

#page-roles .toggle input:checked + .toggle-slider {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

#page-roles .toggle input:checked + .toggle-slider:before {
    background: var(--black-deep);
    transform: translateX(20px);
}

/* History */
#page-roles .history-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

#page-roles .history-filters .custom-dropdown {
    min-width: 180px;
    max-width: 250px;
}

#page-roles .history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--gold-primary);
}

.history-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-icon.granted {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.history-icon.revoked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.history-title strong {
    color: var(--gold-primary);
}

.permission-badge {
    background: var(--bg-elevated);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    display: inline-block;
}

.history-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.history-meta i {
    margin-right: 0.3rem;
}

/* Empty State */
#page-roles .empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

#page-roles .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

#page-roles .empty-state p {
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    #page-roles .roles-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    #page-roles .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    #page-roles .roles-grid {
        grid-template-columns: 1fr;
    }

    #page-roles .modules-grid {
        grid-template-columns: 1fr;
    }

    #page-roles .history-filters {
        flex-direction: column;
    }

    #page-roles .history-filters .custom-dropdown {
        max-width: 100%;
    }

    .role-actions {
        flex-wrap: wrap;
    }

    .btn-role-action.btn-permissions {
        flex: 1 1 100%;
        order: 3;
    }

    .btn-role-action.btn-edit,
    .btn-role-action.btn-delete {
        flex: 1;
        width: auto;
    }

    .roles-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #page-roles .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   PAYMENTS MODULE STYLES
   ========================================= */

/* Payment Detail Grid */
.payment-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3 i {
    font-size: 16px;
}

.detail-table {
    width: 100%;
}

.detail-table td {
    padding: 8px 0;
    vertical-align: top;
}

.detail-table td:first-child {
    color: var(--text-muted);
    width: 40%;
    font-size: 13px;
}

.detail-table td:last-child {
    color: var(--text-primary);
    font-size: 13px;
}

.detail-table code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
}

.detail-refund {
    grid-column: 1 / -1;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.detail-refund h3 {
    color: var(--danger);
}

/* Refund Summary */
.refund-summary {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.refund-summary p {
    margin: 8px 0;
    font-size: 14px;
}

/* Receipt Display */
.receipt-display {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* Customer Info in Table */
.customer-info {
    line-height: 1.4;
}

.customer-info strong {
    display: block;
    font-weight: 500;
}

.customer-info small {
    color: var(--text-muted);
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-left: auto;
}

/* Payment Page Filters */
#page-payments .filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

#page-payments .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

#page-payments .filter-group label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

#page-payments .filter-group select,
#page-payments .filter-group input[type="date"],
#page-payments .filter-group input[type="text"] {
    width: 100%;
    min-width: 120px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
}

#page-payments .filter-group select:focus,
#page-payments .filter-group input:focus {
    border-color: var(--gold-primary);
    outline: none;
}

#page-payments .filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-left: auto;
}

#page-payments .filter-actions .btn {
    padding: 10px 16px;
    font-size: 13px;
}

/* Payment Table Specific Styles */
#page-payments .table th {
    white-space: nowrap;
}

#page-payments .table td {
    vertical-align: middle;
}

#page-payments .table .action-buttons {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

#page-payments .table .action-buttons .btn {
    padding: 8px 10px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge styles for payment methods */
#page-payments .badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Value column styling */
#page-payments .table td strong {
    color: var(--text-primary);
}

#page-payments .table td small.text-success {
    color: #4ade80;
    font-size: 11px;
}

#page-payments .table td small.text-muted {
    color: var(--text-muted);
    font-size: 11px;
}

/* Link styles */
.link-primary {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Modal Close Button */
.modal-close {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: scale(1.05);
}

/* Payment Detail Modal - Optimized Layout */
#modal-payment-detail .modal-content {
    max-width: 800px;
    max-height: 85vh;
}

#modal-payment-detail .modal-header {
    padding: 16px 20px;
}

#modal-payment-detail .modal-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#modal-payment-detail .modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

#modal-payment-detail .modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Payment Detail Grid - Compact */
.payment-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.payment-detail-grid .detail-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--border-color);
}

.payment-detail-grid .detail-section h3 {
    font-size: 13px;
    color: var(--gold-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-detail-grid .detail-section h3 i {
    font-size: 14px;
}

.payment-detail-grid .detail-table {
    width: 100%;
}

.payment-detail-grid .detail-table tr td {
    padding: 6px 0;
    font-size: 13px;
    vertical-align: top;
}

.payment-detail-grid .detail-table tr td:first-child {
    color: var(--text-muted);
    width: 100px;
    white-space: nowrap;
}

.payment-detail-grid .detail-table tr td:last-child {
    color: var(--text-primary);
    word-break: break-word;
}

.payment-detail-grid .detail-table code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--gold-primary);
}

/* Status Badge in Payment Detail */
.payment-detail-grid .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.payment-detail-grid .badge-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.payment-detail-grid .badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.payment-detail-grid .badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.payment-detail-grid .badge-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.payment-detail-grid .badge-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Detail Refund Section - Full Width */
.payment-detail-grid .detail-refund {
    grid-column: 1 / -1;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.payment-detail-grid .detail-refund h3 {
    color: var(--danger);
}

/* Payment Detail Modal Responsive */
@media (max-width: 850px) {
    #modal-payment-detail .modal-content {
        max-width: 95vw;
    }

    .payment-detail-grid {
        grid-template-columns: 1fr;
    }

    .payment-detail-grid .detail-refund {
        grid-column: 1;
    }
}

/* Button Outline (Ver Detalhes) */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Button Warning (Estorno) */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

/* Cancel Summary (similar to refund-summary) */
.cancel-summary {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.cancel-summary p {
    margin: 8px 0;
    font-size: 14px;
}

/* KPI Grid 4 columns */
.kpi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .kpi-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kpi-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Responsive Payment Page */
@media (max-width: 1200px) {
    #page-payments .filter-actions {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .payment-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-refund {
        grid-column: 1;
    }

    .filter-actions {
        flex-wrap: wrap;
    }

    #page-payments .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    #page-payments .filter-group {
        width: 100%;
    }

    #page-payments .filter-actions {
        flex-direction: row;
        justify-content: stretch;
    }

    #page-payments .filter-actions .btn {
        flex: 1;
    }
}

/* =========================================
   VALIDAÇÃO DE CAMPOS - Estilos de erro
   ========================================= */

.input-error {
    border-color: #ff6b6b !important;
    background-color: rgba(255, 107, 107, 0.1) !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3) !important;
}

.field-error {
    color: #ff6b6b;
    font-size: 12px;
    display: block;
    margin-top: 4px;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =========================================
   EMPTY STATE MINIMAL - Fila Vazia
   ========================================= */

.empty-state-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    min-height: 300px;
}

.empty-state-icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    animation: pulse-ring 3s ease-in-out infinite;
}

.empty-state-icon-ring i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.25);
}

.empty-state-content h4 {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.empty-state-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.fab-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-hover));
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin: 0 2px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

@keyframes pulse-ring {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.15);
        transform: scale(1);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.08);
        transform: scale(1.02);
    }
}

/* =========================================
   FAB - Floating Action Button
   ========================================= */

.fab-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F6C53A 0%, #E5A823 100%);
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFD54F 0%, #F6C53A 100%);
}

.fab-button:active {
    transform: scale(0.95);
}

.fab-button i {
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 768px) {
    .fab-button {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* =========================================
   PUSHER NOTIFICATIONS
   ========================================= */

.pusher-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: var(--black-card);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(246, 197, 58, 0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pusher-notification-success {
    border-color: #22c55e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.2);
}

.pusher-notification-success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #22c55e;
    border-radius: 12px 0 0 12px;
}

.pusher-notification-content {
    flex: 1;
}

.pusher-notification-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pusher-notification-content p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.pusher-notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.pusher-notification-close:hover {
    color: var(--text-primary);
}

.pusher-notification.fade-out {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .pusher-notification {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* =========================================
   ADMIN BOOKING - Criar Agendamento pelo Admin
   ========================================= */

/* Botao de criar agendamento no header do calendario */
.btn-create-booking {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 8px;
    color: var(--black-deep);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.btn-create-booking:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(246, 197, 58, 0.4);
}

.btn-create-booking i {
    font-size: 14px;
}

/* Desktop: esconder FAB de agendamento */
#booking-fab {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile: esconder botão do header, mostrar FAB flutuante */
    .btn-create-booking {
        display: none !important;
    }

    #booking-fab {
        display: flex;
    }
}

/* Header do calendario - ajuste para incluir botao */
.calendar-header {
    flex-wrap: wrap;
}

/* Modal de criar agendamento */
#modal-create-booking .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#modal-create-booking .modal-body {
    padding: 20px;
}

/* Secoes do formulario */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    font-size: 14px;
    opacity: 0.8;
}

/* Input group com botao */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
    padding: 10px 16px;
}

/* Info do servico selecionado */
.service-info-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.service-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.service-info-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.service-info-value {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Alert info no modal */
.alert-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: var(--info);
    font-size: 13px;
    line-height: 1.5;
}

.alert-info i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Badge de origem LOJA no calendario */
.legend-color.origin-admin {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: 2px solid #F59E0B;
}

/* Evento de agendamento criado pelo admin */
.calendar-event.origin-admin::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #F59E0B;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.6);
}

/* Badges de origem no evento do calendario */
.calendar-event .badge-store,
.calendar-event .badge-online,
.calendar-event .badge-whatsapp {
    display: inline-block;
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
    line-height: 14px;
}

.calendar-event .badge-store {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.calendar-event .badge-online {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.calendar-event .badge-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* Mes view - evento com badge loja */
.month-event.origin-admin {
    border-left: 3px solid #F59E0B;
}

/* Dia/Semana view - evento com badge loja */
.calendar-event.origin-admin {
    border-left: 3px solid #F59E0B;
}

/* Form hints */
.form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Flex utilities para form rows */
.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

/* Ajuste do calendario header para mobile */
@media (max-width: 992px) {
    .calendar-header {
        gap: 12px;
    }

    .calendar-filters {
        order: 3;
        width: 100%;
    }
}

/* Responsividade do modal de criar agendamento */
@media (max-width: 576px) {
    #modal-create-booking .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group .btn {
        width: 100%;
    }
}
