/* ============================================================
   Model Ibiza - Custom Styles
   Dark luxury aesthetic with orange accents
   ============================================================ */

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111111; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d4822a; }

/* --- Selection --- */
::selection { background: #d4822a33; color: #e5e5e5; }

/* --- Base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #d4822a;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary:hover { background: #e8963e; box-shadow: 0 4px 20px rgba(212, 130, 42, 0.3); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #555; cursor: not-allowed; opacity: 0.6; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #d4822a;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid #d4822a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-secondary:hover { background: #d4822a; color: white; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #888888;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-ghost:hover { border-color: #d4822a; color: #d4822a; }

.btn-danger {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #f87171;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #7f1d1d;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-danger:hover { background: #7f1d1d; color: white; }

/* --- Form inputs --- */
.form-input {
    width: 100%;
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 0.375rem;
    color: #e5e5e5;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
}
.form-input:focus { border-color: #d4822a; box-shadow: 0 0 0 3px rgba(212, 130, 42, 0.1); }
.form-input::placeholder { color: #555555; }
.form-input option { background: #1a1a1a; color: #e5e5e5; }

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
    margin-bottom: 0.375rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-error {
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 0.25rem;
}

/* --- Cards --- */
.card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: #3a3a3a; }
.card-hover:hover {
    border-color: #d4822a44;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* --- Model card --- */
.model-card { position: relative; overflow: hidden; border-radius: 0.75rem; }

/* Online indicator dot */
.online-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 13px;
    height: 13px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    z-index: 10;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    60%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.model-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}
.model-card:hover img { transform: scale(1.04); }
.model-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    pointer-events: none;
}
.model-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

/* --- Hero section --- */
.hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0f0a05 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,130,42,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Stars rating --- */
.stars { display: inline-flex; gap: 2px; }
.star { color: #3a3a3a; font-size: 1rem; }
.star.filled { color: #d4822a; }
.star-interactive { cursor: pointer; transition: color 0.1s; }
.star-interactive:hover, .star-interactive.active { color: #d4822a; }

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-orange { background: rgba(212,130,42,0.15); color: #d4822a; border: 1px solid rgba(212,130,42,0.3); }
.badge-green { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-red { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-blue { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-gray { background: rgba(107,114,128,0.1); color: #9ca3af; border: 1px solid rgba(107,114,128,0.2); }

/* --- Toast notification --- */
.toast {
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 320px;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.toast-success { background: #14532d; border: 1px solid #166534; color: #bbf7d0; }
.toast-error { background: #7f1d1d; border: 1px solid #991b1b; color: #fecaca; }
.toast-info { background: #1e3a5f; border: 1px solid #1e40af; color: #bfdbfe; }

@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; }
}

/* --- Section title --- */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}
.section-title span { color: #d4822a; }
.section-subtitle {
    color: #888888;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto;
}

/* --- Divider --- */
.divider-gold {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #d4822a, #c9a96e);
    margin: 1rem auto;
    border-radius: 1px;
}

/* --- Table --- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
    border-bottom: 1px solid #2a2a2a;
}
.data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #e5e5e5;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Tabs --- */
.tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #888888;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    white-space: nowrap;
}
.tab-button.active { color: #d4822a; border-bottom-color: #d4822a; }
.tab-button:hover { color: #e5e5e5; }

/* --- Chat --- */
.chat-bubble {
    max-width: 75%;
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-bubble-sent {
    background: #d4822a;
    color: white;
    border-bottom-right-radius: 0.25rem;
    margin-left: auto;
}
.chat-bubble-recv {
    background: #1a1a1a;
    color: #e5e5e5;
    border: 1px solid #2a2a2a;
    border-bottom-left-radius: 0.25rem;
}

/* --- Portfolio grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.portfolio-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }

/* --- Gallery Lightbox --- */
.lb-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex; flex-direction: column;
    overflow: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: auto;
}
.lb-header {
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.lb-counter-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.05em;
}
.lb-close-btn {
    background: rgba(255,255,255,0.15);
    border: none; border-radius: 50%;
    width: 2.5rem; height: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.lb-close-btn:hover, .lb-close-btn:active { background: rgba(255,255,255,0.3); }
.lb-main {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.lb-img-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.15s ease;
}
.lb-img-wrap img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    user-select: none; -webkit-user-drag: none;
    pointer-events: none;
    padding: 3.5rem 0 0;
}
.lb-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 3rem; height: 3rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; z-index: 5;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(4px);
}
.lb-arrow:hover, .lb-arrow:active { background: rgba(255,255,255,0.28); }
.lb-arrow-prev { left: 1rem; }
.lb-arrow-next { right: 1rem; }
.lb-footer {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
    padding: 0.75rem 0.75rem 1rem;
    z-index: 10;
}
.lb-thumbs {
    display: flex; gap: 0.4rem;
    overflow-x: auto; align-items: center;
    justify-content: flex-start;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
    flex-shrink: 0;
    width: 3.25rem; height: 3.25rem;
    border-radius: 0.375rem; overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer; opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.lb-thumb:active { transform: scale(0.93); }
.lb-thumb.active { border-color: #f97316; opacity: 1; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (max-width: 480px) {
    .lb-arrow-prev { left: 0.5rem; }
    .lb-arrow-next { right: 0.5rem; }
    .lb-arrow { width: 2.75rem; height: 2.75rem; }
    .lb-img-wrap img { padding-top: 3rem; }
}

/* --- Loading spinner --- */
.spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(212,130,42,0.2);
    border-top-color: #d4822a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Dashboard stats card --- */
.stat-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(212,130,42,0.3); }
.stat-number { font-size: 2rem; font-weight: 700; color: white; line-height: 1; }
.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #888; margin-top: 0.25rem; }

/* --- Filter pills --- */
.filter-pill {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #2a2a2a;
    color: #888888;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active {
    background: rgba(212,130,42,0.1);
    border-color: rgba(212,130,42,0.5);
    color: #d4822a;
}

/* --- Page transitions --- */
.page-fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* --- Whatsapp button --- */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.whatsapp-btn:hover { background: #1ebe5d; box-shadow: 0 4px 20px rgba(37,211,102,0.3); }

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
    .section-title { font-size: 1.5rem; }
    .model-card img { height: 240px; }
    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* --- Prose for bio text --- */
.prose-dark {
    color: #c5c5c5;
    line-height: 1.75;
    font-size: 0.9375rem;
}

/* --- Scrollable container --- */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
