/* 
   FRAMELO — style.css COMPLETO
   Paleta: Preto puro, laranja vibrante, dourado-amarelado, vermelho-alaranjado
   */

:root {
    --primary: #FF6B35;
    --primary-dark: #E8482E;
    --primary-light: #FFA72B;
    --accent: #FFD93D;
    --accent-warm: #FF8C42;
    
    --success: #00B894;
    --warning: #FFD93D;
    --danger: #FF3B3B;
    --info: #4ECDC4;
    
    --dark: #0A0A0A;
    --gray-900: #1A1A1A;
    --gray-800: #2D2D2D;
    --gray-700: #4A4A4A;
    --gray-500: #8A8A8A;
    --gray-400: #B0B0B0;
    --gray-300: #D4D4D4;
    --gray-200: #E8E8E8;
    --gray-100: #F4F4F4;
    --gray-50: #FAFAFA;
    --white: #FFFFFF;
    
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
    --shadow-orange: 0 4px 20px rgba(255,107,53,0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    
    --gradient-primary: linear-gradient(135deg, #FFA72B 0%, #FF6B35 50%, #E8482E 100%);
    --gradient-hero: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 40%, #FF6B35 100%);
    --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    --gradient-warm: linear-gradient(135deg, #FFD93D 0%, #FF6B35 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---- Logo ---- */
.logo-img { height: 36px; width: auto; }
.logo-img-footer { height: 36px; width: auto; margin-bottom: 12px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius-sm); border: none;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
    text-decoration: none; white-space: nowrap; font-family: inherit;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255,107,53,0.35);
    color: var(--white) !important;
}
.btn-primary:disabled {
    background: var(--gray-300); color: var(--gray-500) !important;
    cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-outline {
    background: transparent; border: 2px solid var(--primary);
    color: var(--primary) !important;
}
.btn-outline:hover {
    background: var(--primary); color: var(--white) !important;
    border-color: var(--primary);
}
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---- Navbar (PRETO) ---- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--dark);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-800);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--gray-300) !important; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary-light) !important; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.main-content { min-height: calc(100vh - 200px); }

/* ---- Flash Messages ---- */
.flash {
    position: fixed; top: 76px; right: 20px; z-index: 200;
    padding: 14px 20px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; max-width: 400px;
    color: var(--white) !important; font-weight: 500;
}
.flash-sucesso { background: var(--success); }
.flash-erro { background: var(--danger); }
.flash button { background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; }
@keyframes slideIn { from { transform: translateX(400px); } to { transform: translateX(0); } }

/* ---- Hero ---- */
.hero {
    position: relative; min-height: 540px;
    background: var(--gradient-hero);
    display: flex; align-items: center; color: var(--white) !important; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,107,53,0.15), transparent 60%),
                radial-gradient(circle at 20% 30%, rgba(255,217,61,0.08), transparent 50%);
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 70px 20px; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3.2rem; font-weight: 900; margin: 16px 0; line-height: 1.15; letter-spacing: -1px; }
.hero h1 span { 
    background: var(--gradient-warm);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white) !important; }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--dark) !important; border-color: var(--white); }
.hero-actions .btn-primary { background: var(--white); color: var(--primary) !important; box-shadow: 0 4px 20px rgba(255,255,255,0.2); }
.hero-actions .btn-primary:hover { background: var(--gray-100); transform: translateY(-2px); }

.badge { display: inline-block; padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; margin: 0 4px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }

.hero-stats { display: flex; gap: 50px; justify-content: center; }
.hero-stats .stat strong { font-size: 2.2rem; font-weight: 900; display: block; }
.hero-stats .stat span { font-size: 14px; opacity: 0.7; }

/* ---- Search Section ---- */
.search-section { padding: 50px 0; text-align: center; background: var(--white); }
.search-section h2 { font-size: 2rem; margin-bottom: 8px; font-weight: 800; }
.search-section > .container > p { color: var(--gray-700); margin-bottom: 24px; font-size: 1.1rem; }
.search-form { display: flex; gap: 12px; max-width: 700px; margin: 0 auto; }
.search-form input {
    flex: 1; padding: 14px 18px; border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: 15px; transition: var(--transition);
    font-family: inherit; color: var(--gray-900); background: var(--gray-50);
}
.search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); background: var(--white); }
.search-form input[type="date"] { max-width: 180px; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--gray-700); font-size: 1.05rem; }

/* ---- Categories ---- */
.categories-section { padding: 60px 0; background: var(--gray-50); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.category-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; box-shadow: var(--shadow); transition: var(--transition);
    display: block; color: var(--white) !important;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--white) !important; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.category-card:hover img { transform: scale(1.08); }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(10,10,10,0.8)); }
.category-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 1; }
.category-info h3 { font-size: 1.4rem; margin-bottom: 4px; font-weight: 700; }
.category-info p { font-size: 14px; opacity: 0.85; }
.category-placeholder { width: 100%; height: 100%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 3rem; }

/* ---- Albums ---- */
.albums-section { padding: 60px 0; }
.albums-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.album-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); display: block;
}
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.album-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: var(--transition); }
.album-card:hover img { transform: scale(1.08); }
.album-placeholder { aspect-ratio: 3/2; background: var(--gradient-dark); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.album-info { padding: 18px; }
.album-category { font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.album-info h3 { font-size: 1.15rem; margin: 4px 0; color: var(--gray-900); font-weight: 700; }
.album-info p { color: var(--gray-700); font-size: 14px; }
.album-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.album-price { font-weight: 800; color: var(--primary); font-size: 1.1rem; }

/* ---- How It Works ---- */
.how-it-works { background: var(--white); padding: 60px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 36px 20px; border-radius: var(--radius); background: var(--gray-50); transition: var(--transition); border: 1px solid var(--gray-200); }
.step-card:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-light); }
.step-number {
    width: 56px; height: 56px; background: var(--gradient-primary);
    color: var(--white) !important; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; margin: 0 auto 16px; box-shadow: var(--shadow-orange);
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
.step-card p { color: var(--gray-700); font-size: 14px; }

/* ---- Photographers ---- */
.photographers-section { padding: 60px 0; background: var(--gray-50); }
.photographers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.photographer-card {
    background: var(--white); border-radius: var(--radius); padding: 28px 20px;
    text-align: center; box-shadow: var(--shadow); transition: var(--transition); display: block;
}
.photographer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ph-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--gray-200); }
.avatar-placeholder {
    width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white) !important; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800; border: 3px solid var(--white); box-shadow: var(--shadow-orange);
}
.avatar-placeholder.sm { width: 40px; height: 40px; font-size: 1rem; margin: 0; border: 2px solid var(--white); }
.avatar-placeholder.lg { width: 64px; height: 64px; font-size: 1.5rem; }
.photographer-card h3 { font-size: 1.1rem; margin-bottom: 4px; font-weight: 700; }
.ph-specialty { color: var(--primary); font-size: 14px; font-weight: 600; }
.ph-location { color: var(--gray-700); font-size: 13px; margin-top: 2px; }
.ph-stats { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--gray-700); }
.section-cta { text-align: center; margin-top: 36px; }

/* ---- Footer ---- */
.footer { background: var(--dark); color: var(--gray-400); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { margin-top: 4px; font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: var(--white); margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.footer-col a { display: block; color: var(--gray-400) !important; font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--primary-light) !important; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; }

/* ---- Auth Pages ---- */
.auth-wrapper { display: flex; align-items: center; justify-content: center; padding: 60px 20px; min-height: calc(100vh - 140px); background: var(--gray-50); }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); max-width: 440px; width: 100%; }
.auth-card-wide { max-width: 560px; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h1 { font-size: 1.8rem; font-weight: 800; }
.auth-header p { color: var(--gray-700); font-size: 15px; }
.tipo-selector { display: flex; gap: 12px; margin-bottom: 24px; }
.tipo-option {
    flex: 1; padding: 20px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius);
    text-align: center; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.tipo-option:hover { border-color: var(--primary-light); }
.tipo-option.active { border-color: var(--primary); background: rgba(255,107,53,0.04); }
.tipo-option input { display: none; }
.tipo-icon { font-size: 2rem; }
.tipo-label { font-weight: 700; font-size: 15px; }
.tipo-option small { color: var(--gray-700); font-size: 12px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
    font-size: 15px; transition: var(--transition); font-family: inherit; color: var(--gray-900);
    background: var(--gray-50);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { text-align: right; }
.link-muted { color: var(--gray-500) !important; font-size: 14px; }
.link-muted:hover { color: var(--primary) !important; }
.auth-divider { text-align: center; margin: 24px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.auth-divider span { position: relative; background: var(--white); padding: 0 12px; color: var(--gray-500); font-size: 14px; }
.auth-footer { text-align: center; font-size: 15px; color: var(--gray-700); }

/* ---- Dashboard ---- */
.dashboard { display: grid; grid-template-columns: 250px 1fr; gap: 0; min-height: calc(100vh - 70px); }
.dashboard-sidebar { background: var(--dark); border-right: 1px solid var(--gray-800); padding: 24px 16px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.dashboard-user { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-800); }
.dashboard-user h3 { font-size: 1.1rem; margin-top: 8px; color: var(--white); font-weight: 700; }
.dashboard-user p { color: var(--gray-400); font-size: 14px; }
.dashboard-nav { display: flex; flex-direction: column; gap: 4px; }
.dashboard-nav a { padding: 10px 14px; border-radius: var(--radius-sm); color: var(--gray-400) !important; font-weight: 500; font-size: 15px; }
.dashboard-nav a.active, .dashboard-nav a:hover { background: var(--primary); color: var(--white) !important; }
.dashboard-main { padding: 32px; background: var(--gray-50); }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dashboard-header h1 { font-size: 1.8rem; font-weight: 800; }
.dashboard-section { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.dashboard-section h2 { font-size: 1.3rem; margin-bottom: 16px; font-weight: 700; }

.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 20px;
    display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.stat-icon { font-size: 2rem; }
.stat-card strong { font-size: 1.5rem; display: block; font-weight: 800; }
.stat-card small { color: var(--gray-700); font-size: 14px; }

.albums-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 14px; background: var(--gray-50); font-size: 14px; font-weight: 700; color: var(--gray-700); border-bottom: 2px solid var(--gray-200); }
td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
td small { display: block; color: var(--gray-500); margin-top: 2px; }
tr:hover { background: var(--gray-50); }

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; }
.status-rascunho { background: var(--warning); color: var(--dark); }
.status-publicado, .status-pago { background: var(--success); color: var(--white); }
.status-arquivado, .status-cancelado { background: var(--danger); color: var(--white); }
.status-pendente { background: var(--warning); color: var(--dark); }

.form-card { background: var(--gray-50); padding: 20px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state p { color: var(--gray-700); margin-bottom: 16px; font-size: 16px; }

.dashboard-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.action-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.tipo-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.tipo-fotografo { background: var(--primary); color: var(--white); }
.tipo-cliente { background: var(--info); color: var(--white); }
.tipo-admin { background: var(--danger); color: var(--white); }

.chart-container { background: var(--gray-50); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.chart-summary { display: flex; gap: 24px; flex-wrap: wrap; }
.chart-summary-item { display: flex; flex-direction: column; }
.chart-summary-item span { font-size: 13px; color: var(--gray-700); }
.chart-summary-item strong { font-size: 1.3rem; color: var(--primary); }
.metric-list { display: flex; flex-direction: column; }
.metric-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.metric-row:last-child { border-bottom: none; }
.metric-row span { color: var(--gray-700); font-size: 14px; }
.metric-row strong { font-size: 1.1rem; color: var(--primary); }

/* ---- Album Page ---- */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--gray-700); display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--primary) !important; }
.breadcrumb a:hover { text-decoration: underline; }

.album-header { background: var(--white); padding: 32px 0; box-shadow: var(--shadow); }
.album-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.album-photographer { display: flex; align-items: center; gap: 12px; }
.ph-avatar-sm { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-200); }
.album-event-info { display: flex; gap: 16px; font-size: 14px; color: var(--gray-700); flex-wrap: wrap; }
.album-header h1 { font-size: 2rem; margin-bottom: 8px; font-weight: 800; }
.album-description { color: var(--gray-700); max-width: 700px; }
.album-pricing { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.price-tag { background: var(--gray-50); padding: 8px 16px; border-radius: 20px; font-size: 14px; border: 1px solid var(--gray-200); }
.price-tag strong { color: var(--primary); }

.selection-bar { position: sticky; top: 60px; z-index: 90; background: var(--white); box-shadow: 0 2px 16px rgba(0,0,0,0.08); padding: 14px 0; border-bottom: 1px solid var(--gray-200); border-top: 1px solid var(--gray-200); }
.selection-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.selection-info { font-weight: 700; font-size: 15px; }
.selected-total { color: var(--primary); margin-left: 8px; }
.selection-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.photo-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 30px 0; }
.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
    aspect-ratio: 1; box-shadow: var(--shadow); transition: var(--transition); background: var(--gray-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.selected { box-shadow: 0 0 0 4px var(--primary); }
.gallery-item.owned { opacity: 0.8; }
.gallery-item.selected::before { content: '\2713'; position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--primary); color: var(--white) !important; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,0.65)); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 12px; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.badge-price { color: var(--white); font-weight: 800; font-size: 16px; }
.select-indicator { color: var(--white); font-size: 13px; margin-top: 4px; }
.badge-owned { background: var(--success); color: var(--white) !important; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }

.fav-form { position: absolute; top: 8px; right: 8px; z-index: 3; }
.fav-btn { background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 16px; transition: var(--transition); }
.fav-btn:hover { transform: scale(1.15); }

/* ---- Checkout ---- */
.checkout-wrapper { padding: 60px 20px; }
.checkout-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 600px; margin: 0 auto; }
.checkout-info { margin: 24px 0; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.info-row strong { color: var(--primary); }

/* ---- Downloads ---- */
.downloads-page { padding: 32px 0; }
.downloads-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.downloads-header h1 { font-size: 1.8rem; font-weight: 800; }
.success-banner { background: var(--success); color: var(--white) !important; padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.download-all-bar { display: flex; justify-content: space-between; align-items: center; background: var(--gray-50); padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid var(--gray-200); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.download-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.download-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.download-info { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.download-title { font-weight: 700; font-size: 14px; }
.download-size { color: var(--gray-500); font-size: 12px; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); transition: var(--transition); }
.order-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.order-thumb { font-size: 2rem; }
.order-info { flex: 1; }
.order-info h3 { font-size: 1.1rem; font-weight: 700; }
.order-info p { color: var(--gray-700); font-size: 14px; }
.order-info small { color: var(--gray-500); }
.order-price { text-align: right; }
.order-price strong { display: block; color: var(--primary); font-size: 1.1rem; }

/* ---- Upload Area ---- */
.upload-area { border: 3px dashed var(--gray-300); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-area:hover, .upload-area.drag-over { border-color: var(--primary); background: rgba(255,107,53,0.04); }
.upload-area p { font-size: 16px; color: var(--gray-700); }
.upload-area small { color: var(--gray-500); }
.file-list { margin-top: 12px; }
.file-count { font-weight: 700; margin-bottom: 8px; }
.file-item { padding: 6px 12px; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 4px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 8px; display: flex; justify-content: space-between; color: var(--white); font-size: 13px; font-weight: 700; }

/* ---- Photographers Page ---- */
.photographers-banner { background: var(--gradient-dark); color: var(--white) !important; padding: 50px 0; text-align: center; position: relative; overflow: hidden; }
.photographers-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(255,107,53,0.15), transparent 60%); }
.photographers-banner h1 { font-size: 2.5rem; margin-bottom: 8px; font-weight: 900; position: relative; z-index: 1; }
.photographers-banner p { opacity: 0.8; font-size: 1.1rem; position: relative; z-index: 1; }
.filters-section { background: var(--white); padding: 20px 0; box-shadow: var(--shadow); position: sticky; top: 60px; z-index: 50; border-bottom: 1px solid var(--gray-200); }
.filters-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-group { flex: 1; min-width: 180px; }
.filter-input, .filter-select { width: 100%; padding: 10px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); font-family: inherit; color: var(--gray-900); background: var(--gray-50); }
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); background: var(--white); }
.photographers-grid-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 30px 0; }
.photographer-card-lg { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.photographer-card-lg:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.photographer-card-lg.is-featured { border: 2px solid var(--accent); }
.ph-cover { height: 120px; background: var(--gradient-dark); position: relative; }
.ph-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.3); font-weight: 800; }
.featured-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--dark) !important; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.ph-avatar-lg { width: 80px; height: 80px; margin: -40px auto 0; position: relative; z-index: 2; }
.ph-avatar-lg img, .ph-avatar-lg .avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--white); object-fit: cover; background: var(--gradient-primary); color: var(--white) !important; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; }
.ph-body { padding: 16px 20px 24px; text-align: center; }
.ph-body h3 { font-size: 1.2rem; margin-bottom: 4px; font-weight: 700; }
.ph-studio { font-size: 14px; color: var(--gray-700); margin-bottom: 2px; }
.ph-stats-lg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.ph-stat { display: flex; flex-direction: column; align-items: center; }
.ph-stat strong { font-size: 1.1rem; color: var(--primary); }
.ph-stat small { font-size: 11px; color: var(--gray-500); }
.ph-social { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.social-link { font-size: 13px; padding: 4px 10px; border-radius: 20px; background: var(--gray-50); color: var(--gray-700) !important; }
.social-link:hover { background: var(--primary); color: var(--white) !important; }
.ph-actions { display: flex; flex-direction: column; gap: 8px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); color: var(--gray-700) !important; font-size: 14px; font-weight: 600; transition: var(--transition); }
.page-btn:hover { border-color: var(--primary); color: var(--primary) !important; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white) !important; }

/* ---- Facial Recognition ---- */
.face-banner { background: var(--gradient-dark); color: var(--white) !important; padding: 50px 0; text-align: center; position: relative; overflow: hidden; }
.face-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 60% 50%, rgba(255,107,53,0.12), transparent 60%); }
.face-banner h1 { font-size: 2.5rem; margin-bottom: 8px; font-weight: 900; position: relative; z-index: 1; }
.face-howto { padding: 40px 0; background: var(--white); }
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.howto-step { text-align: center; padding: 24px 16px; }
.howto-icon { width: 50px; height: 50px; background: var(--gradient-primary); color: var(--white) !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 12px; box-shadow: var(--shadow-orange); }
.face-search { padding: 40px 0; }
.face-search-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); max-width: 600px; margin: 0 auto; }
.face-search-card h2 { text-align: center; margin-bottom: 24px; font-weight: 800; }
.selfie-upload-area { border: 3px dashed var(--gray-300); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); min-height: 200px; display: flex; align-items: center; justify-content: center; }
.selfie-upload-area:hover, .selfie-upload-area.drag-over { border-color: var(--primary); background: rgba(255,107,53,0.04); }
.selfie-placeholder { width: 100%; }
.selfie-icon { font-size: 3rem; margin-bottom: 8px; }
.selfie-preview { max-width: 200px; max-height: 200px; border-radius: var(--radius); margin: 0 auto; }
.face-tips { background: var(--gray-50); border-radius: var(--radius-sm); padding: 16px 20px; border: 1px solid var(--gray-200); }
.face-tips h4 { font-size: 14px; margin-bottom: 8px; font-weight: 700; }
.face-tips ul { padding-left: 20px; list-style: disc; }
.face-tips li { font-size: 14px; color: var(--gray-700); margin-bottom: 4px; }
.face-status { padding: 20px 0; }
.status-card-info { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.status-card-info h3 { margin-bottom: 16px; font-weight: 700; }
.status-info-row { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.status-info-row strong { color: var(--primary); }
.progress-bar { background: var(--gray-200); border-radius: 20px; height: 8px; overflow: hidden; }
.progress-fill { background: var(--gradient-primary); height: 100%; transition: width 0.5s ease; }
.face-status-info { display: flex; gap: 24px; margin: 16px 0; }
.face-stat-item { text-align: center; }
.face-stat-item strong { display: block; font-size: 1.8rem; color: var(--primary); }
.face-stat-item small { color: var(--gray-700); font-size: 13px; }
.face-error { padding: 40px 0; }
.error-card { text-align: center; background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.error-icon { font-size: 3rem; margin-bottom: 12px; }
.face-results { padding: 40px 0; }
.results-header { text-align: center; margin-bottom: 24px; }
.results-header h2 { font-size: 2rem; font-weight: 800; }
.face-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 32px; }
.face-result-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: var(--transition); border: 3px solid transparent; position: relative; }
.face-result-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.face-result-item.selected { border-color: var(--primary); }
.face-result-item.selected::before { content: '\2713'; position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--primary); color: var(--white) !important; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.result-image-wrapper { position: relative; aspect-ratio: 1; }
.result-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.match-badge { position: absolute; top: 8px; right: 8px; background: rgba(255,107,53,0.92); color: var(--white) !important; padding: 6px 12px; border-radius: 20px; text-align: center; }
.match-percent { display: block; font-weight: 800; font-size: 15px; }
.match-label { font-size: 10px; opacity: 0.9; }
.result-info { padding: 12px; display: flex; justify-content: space-between; align-items: center; }
.result-title { font-size: 14px; font-weight: 700; }
.result-price { font-weight: 800; color: var(--primary); }
.no-results-card { text-align: center; background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.no-results-icon { font-size: 3rem; margin-bottom: 12px; }
.no-results-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.results-footer { text-align: center; margin-top: 24px; }
.btn.loading { opacity: 0.7; pointer-events: none; }

/* ---- Utilities ---- */
.muted { color: var(--gray-700); }
.sticky { position: sticky; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard { grid-template-columns: 1fr; }
    .dashboard-sidebar { border-right: none; border-bottom: 1px solid var(--gray-800); position: static; height: auto; }
    .dashboard-nav { flex-direction: row; flex-wrap: wrap; }
    .dashboard-nav a { flex: 1; text-align: center; }
    .dashboard-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .search-form { flex-direction: column; }
    .search-form input[type="date"] { max-width: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .selection-bar-inner { flex-direction: column; gap: 12px; }
    .selection-actions { flex-wrap: wrap; justify-content: center; }
    .photo-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .albums-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
    .tipo-selector { flex-direction: column; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    .face-results-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .face-status-info { flex-direction: column; gap: 12px; }
    .howto-steps { grid-template-columns: 1fr 1fr; }
    .filters-form { flex-direction: column; }
    .filter-group { width: 100%; }
    .ph-stats-lg { grid-template-columns: repeat(2, 1fr); }
    .photographers-grid-lg { grid-template-columns: 1fr; }
    .logo-img { height: 30px; }
}
/* ---- Social Proof Popups ---- */
.social-proof-popup {
    position: fixed; bottom: 24px; left: 24px; z-index: 95;
    background: var(--white); border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15); padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    max-width: 380px; min-width: 300px;
    transform: translateX(-450px); opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary);
}
.social-proof-popup.show { transform: translateX(0); opacity: 1; }
.social-proof-popup.hide { transform: translateX(-450px); opacity: 0; }
.sp-avatar {
    width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
    background: var(--gradient-primary); color: var(--white) !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; box-shadow: var(--shadow-orange);
}
.sp-content { flex: 1; }
.sp-content p { font-size: 13px; color: var(--gray-700); line-height: 1.5; margin: 0; }
.sp-content p strong { color: var(--gray-900); font-weight: 700; }
.sp-content p .sp-highlight { color: var(--primary); font-weight: 700; }
.sp-content .sp-time { font-size: 11px; color: var(--gray-500); margin-top: 3px; display: block; }
.sp-close {
    background: none; border: none; color: var(--gray-400);
    font-size: 18px; cursor: pointer; padding: 0; margin-left: 4px;
}
.sp-close:hover { color: var(--gray-700); }
@media (max-width: 600px) {
    .social-proof-popup { bottom: 16px; left: 16px; right: 16px; max-width: none; min-width: 0; padding: 12px 14px; gap: 10px; }
    .sp-avatar { width: 40px; height: 40px; min-width: 40px; font-size: 1.1rem; }
    .sp-content p { font-size: 12px; }
    .sp-content .sp-time { font-size: 10px; }
}