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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a14;
    color: #e8e0d4;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(255, 153, 51, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 24, 84, 0.15) 0%, transparent 50%);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px 30px;
}

.header-icon {
    font-size: 56px;
    color: #FFD700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 16px;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #8a7f72;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.card-body {
    padding: 24px;
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9933, #FFD700);
    color: #0a0a14;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Input */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-group input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input::placeholder {
    color: #5a5a6a;
}

.input-group input:focus {
    border-color: #FF9933;
}

.hint {
    font-size: 13px;
    color: #5a5a6a;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #FF9933, #e6851e);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 14px;
}

/* Pipeline Options */
.pipeline-options {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

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

.option-group.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.option-group label {
    font-size: 11px;
    color: #8a7f72;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-group select {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e8e0d4;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7f72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.option-group select:focus {
    border-color: #FF9933;
}

.option-group select option {
    background: #1a1a2e;
    color: #e8e0d4;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Style Reference Upload */
.style-ref-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.style-ref-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.style-ref-header label {
    font-weight: 600;
    font-size: 14px;
    color: #e8e0d4;
}

.style-ref-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.style-ref-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    border: 2px dashed rgba(255, 153, 51, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.style-ref-dropzone:hover,
.style-ref-dropzone.dragover {
    border-color: rgba(255, 153, 51, 0.6);
    background: rgba(255, 153, 51, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.style-ref-dropzone .upload-icon {
    font-size: 24px;
}

.style-ref-dropzone .upload-formats {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.style-ref-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.style-ref-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-remove-ref {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e8e0d4;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-left: auto;
}

.btn-remove-ref:hover {
    background: rgba(255, 80, 80, 0.3);
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Suggestions */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.suggestion-item {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover {
    background: rgba(255, 153, 51, 0.08);
    border-color: rgba(255, 153, 51, 0.3);
    transform: translateX(4px);
}

.suggestion-item .hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFD700;
}

.suggestion-item .english {
    font-size: 13px;
    color: #8a7f72;
    margin-top: 4px;
}

.suggestion-item .arrow {
    font-size: 20px;
    color: #FF9933;
    opacity: 0;
    transition: opacity 0.2s;
}

.suggestion-item:hover .arrow {
    opacity: 1;
}

/* Script Preview */
.script-header {
    text-align: center;
    margin-bottom: 28px;
}

.script-header .title-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.script-header .title-english {
    font-size: 16px;
    color: #8a7f72;
    letter-spacing: 1px;
}

.script-scenes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scene-card {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border-left: 3px solid #FF9933;
}

.scene-card .scene-number {
    font-size: 11px;
    font-weight: 700;
    color: #FF9933;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.scene-card .narration {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e8e0d4;
    margin-bottom: 10px;
}

.scene-card .image-prompt {
    font-size: 12px;
    color: #5a5a6a;
    font-style: italic;
    line-height: 1.5;
}

/* Progress */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.progress-step.active {
    background: rgba(255, 153, 51, 0.06);
    border-color: rgba(255, 153, 51, 0.2);
}

.progress-step.done {
    background: rgba(76, 175, 80, 0.06);
    border-color: rgba(76, 175, 80, 0.15);
}

.progress-step.error {
    background: rgba(244, 67, 54, 0.06);
    border-color: rgba(244, 67, 54, 0.2);
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.progress-step .step-icon {
    background: rgba(255, 255, 255, 0.06);
    color: #5a5a6a;
}

.progress-step.active .step-icon {
    background: #FF9933;
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-step.done .step-icon {
    background: #4CAF50;
    color: #fff;
}

.progress-step.error .step-icon {
    background: #f44336;
    color: #fff;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 153, 51, 0); }
}

.step-label {
    font-size: 14px;
    color: #8a7f72;
}

.progress-step.active .step-label {
    color: #e8e0d4;
}

.progress-step.done .step-label {
    color: #8a7f72;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF9933, #FFD700);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 13px;
    color: #5a5a6a;
    text-align: center;
}

/* Result */
#result-content {
    text-align: center;
}

.result-costs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cost-item {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    text-align: center;
}

.cost-item .label {
    font-size: 11px;
    color: #5a5a6a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.cost-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
}

.result-status {
    font-size: 16px;
    color: #4CAF50;
    margin: 16px 0;
}

.result-status.error {
    color: #f44336;
}

/* History */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.history-item .info .date {
    font-size: 12px;
    color: #5a5a6a;
    margin-bottom: 2px;
}

.history-item .info .title {
    font-size: 14px;
    color: #e8e0d4;
}

.history-item .status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.history-item .status.completed {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.history-item .status.failed {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.history-item .status.cancelled {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.history-item-clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.history-item-clickable:hover {
    background: rgba(255, 153, 51, 0.05);
    border-color: rgba(255, 153, 51, 0.2);
}

.empty-state {
    text-align: center;
    color: #5a5a6a;
    font-size: 14px;
    padding: 20px;
}

.cost-estimate {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(255, 153, 51, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 10px;
    font-size: 13px;
}

.cost-estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.cost-estimate-row.cost-estimate-reserve {
    color: #8a8a9a;
    font-size: 12px;
}

.cost-label {
    color: #c0c0cc;
}

.cost-estimate-row:first-child .cost-label {
    color: #fff;
    font-weight: 600;
}

.cost-value {
    color: #ff9933;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cost-estimate-breakdown {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #6a6a7a;
    font-size: 11px;
    font-family: ui-monospace, monospace;
}

/* Auth Forms */
.auth-card {
    max-width: 440px;
    margin: 0 auto;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 12px;
    color: #8a7f72;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-group input {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder {
    color: #5a5a6a;
}

.form-group input:focus {
    border-color: #FF9933;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #5a5a6a;
}

.auth-switch a {
    color: #FF9933;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.flash-messages {
    margin-bottom: 16px;
}

.flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 8px;
}

.flash-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.flash-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* Dashboard Nav */
.nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.nav-user {
    font-size: 14px;
    color: #8a7f72;
}

.nav-user strong {
    color: #e8e0d4;
}

/* Balance Card */
.balance-card {
    text-align: center;
    padding: 32px 24px;
}

.balance-amount {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.balance-label {
    font-size: 13px;
    color: #5a5a6a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.balance-reserved {
    font-size: 13px;
    color: #8a7f72;
    margin-bottom: 24px;
}

.funds-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-fund {
    padding: 10px 24px;
    background: rgba(255, 153, 51, 0.1);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    color: #FF9933;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-fund:hover {
    background: rgba(255, 153, 51, 0.2);
    transform: translateY(-1px);
}

/* Insufficient balance warning */
.balance-warning {
    display: none;
    padding: 12px 16px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 10px;
    color: #f44336;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

/* Notification toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #1a472a;
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.toast-error {
    background: #3a1a1a;
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Transaction history */
.txn-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.txn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 13px;
}

.txn-item .txn-desc {
    color: #8a7f72;
}

.txn-item .txn-amount {
    font-weight: 600;
}

.txn-item .txn-amount.credit {
    color: #4CAF50;
}

.txn-item .txn-amount.debit {
    color: #f44336;
}

/* Responsive */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }

    .header h1 {
        font-size: 24px;
    }

    .action-bar {
        flex-direction: column;
        gap: 12px;
    }

    .result-costs {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================================== */
/* Site chrome: top nav, footer, WhatsApp FAB                  */
/* ========================================================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}

.site-nav-brand-icon {
    font-size: 22px;
    color: #FFD700;
    font-family: 'Noto Sans Devanagari', sans-serif;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.site-nav-brand-text {
    font-size: 16px;
    background: linear-gradient(135deg, #FFD700, #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav-checkbox {
    display: none;
}

.site-nav-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
}

.site-nav-toggle span {
    display: block;
    height: 2px;
    background: #e8e0d4;
    border-radius: 2px;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav-links a {
    color: #e8e0d4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav-links a:hover { color: #FFD700; }

.site-nav-links .site-nav-admin {
    color: #FF9933;
    font-weight: 600;
}

.site-nav-user {
    font-size: 13px;
    color: #8a7f72;
}

.btn-sm {
    padding: 8px 14px !important;
    font-size: 13px !important;
}

.site-main {
    min-height: calc(100vh - 200px);
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 48px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.site-footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a7f72;
    margin-bottom: 14px;
    font-weight: 600;
}

.site-footer-col a {
    display: block;
    color: #e8e0d4;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.site-footer-col a:hover { color: #FFD700; }

.site-footer-brand p {
    color: #8a7f72;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.site-footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.site-footer-brand-icon {
    color: #FFD700;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 22px;
}

.site-footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: #5a5a6a;
    font-size: 13px;
    text-align: center;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* ========================================================== */
/* Landing page                                                */
/* ========================================================== */

.hero {
    padding: 80px 20px 60px;
    text-align: center;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFD700;
    padding: 8px 16px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700, #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #c0b8ac;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-trust {
    color: #8a7f72;
    font-size: 13px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust .dot { opacity: 0.5; }

/* Section scaffolding */
.section {
    padding: 70px 20px;
}

.section-alt {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-inner.narrow { max-width: 720px; }
.section-inner.center { text-align: center; }

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: #8a7f72;
    text-align: center;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 153, 51, 0.25);
}

.tile-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.tile h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.tile p {
    color: #8a7f72;
    font-size: 14px;
    line-height: 1.6;
}

.tile-sm { padding: 22px 20px; }
.tile-sm h3 { font-size: 16px; }

/* Steps strip */
.steps-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-tile {
    padding: 24px 20px;
    border-left: 2px solid rgba(255, 153, 51, 0.3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9933, #FFD700);
    color: #0a0a14;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-tile h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-tile p {
    color: #8a7f72;
    font-size: 14px;
    line-height: 1.5;
}

/* Pricing */
.pricing-grid { margin-top: 24px; }

.price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
}

.price-card-highlight {
    border-color: rgba(255, 153, 51, 0.4);
    background: rgba(255, 153, 51, 0.04);
    transform: scale(1.02);
}

.price-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a7f72;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.price-hint {
    font-size: 13px;
    color: #8a7f72;
}

.pricing-note {
    text-align: center;
    color: #5a5a6a;
    font-size: 13px;
    margin-top: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Simple pricing */
.price-simple {
    margin-top: 24px;
}

.price-simple-amount {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.price-simple-amount span {
    font-size: 24px;
    font-weight: 500;
    color: #8a7f72;
    -webkit-text-fill-color: #8a7f72;
}

.price-simple-note {
    font-size: 15px;
    color: #8a7f72;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* FAQ */
.faq {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 500;
    color: #fff;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    color: #FF9933;
    font-size: 22px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq[open] summary::after { transform: rotate(45deg); }

.faq p {
    padding: 0 22px 18px;
    color: #8a7f72;
    font-size: 14px;
    line-height: 1.7;
}

.faq p a { color: #FF9933; }

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

/* Video showcase */
.section-videos { background: rgba(255, 255, 255, 0.015); }

.videos-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.phone-frame {
    flex-shrink: 0;
    width: 240px;
    background: #12121e;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 14px 10px 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
    scroll-snap-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 153, 51, 0.12);
}

.phone-frame-center {
    width: 260px;
    border-color: rgba(255, 153, 51, 0.35);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 153, 51, 0.15);
    transform: translateY(-10px);
}

.phone-frame-center:hover {
    transform: translateY(-16px);
}

.phone-notch {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 10px;
}

.phone-screen {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
}

.phone-screen iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================================== */
/* Auth pages wrapper                                          */
/* ========================================================== */

.auth-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 60px 20px;
}

.auth-fineprint {
    margin-top: 14px;
    font-size: 12px;
    color: #5a5a6a;
    text-align: center;
}

.auth-fineprint a { color: #FF9933; }

/* ========================================================== */
/* Legal / contact pages                                       */
/* ========================================================== */

.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    color: #c0b8ac;
    line-height: 1.7;
}

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

.legal-header h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-updated {
    color: #5a5a6a;
    font-size: 13px;
}

.legal section { margin-bottom: 28px; }

.legal h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal p, .legal ul { font-size: 15px; }

.legal ul {
    padding-left: 22px;
    margin-bottom: 8px;
}

.legal li { margin-bottom: 6px; }

.legal a { color: #FF9933; }

/* ========================================================== */
/* Admin panel                                                 */
/* ========================================================== */

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.admin-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
}

.admin-sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a7f72;
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.admin-sidebar-nav a {
    color: #e8e0d4;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar-nav a:hover { background: rgba(255, 255, 255, 0.04); }

.admin-sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(255, 215, 0, 0.1));
    color: #FFD700;
    font-weight: 600;
}

.admin-main {
    min-width: 0;
}

.admin-h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.admin-h2 {
    font-size: 20px;
    color: #fff;
    margin: 32px 0 16px;
    font-weight: 600;
}

.admin-count {
    color: #8a7f72;
    font-weight: 400;
    font-size: 18px;
}

.admin-breadcrumb {
    margin-bottom: 12px;
    font-size: 13px;
}

.admin-breadcrumb a {
    color: #8a7f72;
    text-decoration: none;
}

.admin-breadcrumb a:hover { color: #FFD700; }

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

.admin-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
}

.admin-stat-label {
    font-size: 12px;
    color: #8a7f72;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.admin-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.admin-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-filter input,
.admin-filter select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8e0d4;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
}

.admin-filter input:focus,
.admin-filter select:focus {
    outline: none;
    border-color: #FF9933;
}

.admin-table-wrap {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    text-align: left;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #8a7f72;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e8e0d4;
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.015); }

.admin-table .mono {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 12px;
    color: #8a7f72;
}

.admin-table a {
    color: #FFD700;
    text-decoration: none;
}

.admin-table a:hover { text-decoration: underline; }

.admin-pagination {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    color: #8a7f72;
    font-size: 13px;
}

.admin-pagination a {
    color: #FFD700;
    text-decoration: none;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.admin-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-danger {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.35);
    color: #f87171;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.btn-danger:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.25);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status / type pills */
.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.06);
    color: #c0b8ac;
}

.pill-completed, .pill-active, .pill-credit, .pill-refund { background: rgba(76, 175, 80, 0.15); color: #6ad76e; }
.pill-failed, .pill-render_failed, .pill-cancelled, .pill-inactive, .pill-debit, .pill-admin_debit { background: rgba(244, 67, 54, 0.12); color: #f87171; }
.pill-queued, .pill-running, .pill-reserve { background: rgba(255, 153, 51, 0.15); color: #FFB870; }
.pill-admin_credit { background: rgba(255, 215, 0, 0.15); color: #FFD700; }

.muted { color: #5a5a6a; text-align: center; padding: 20px; }

/* ========================================================== */
/* Responsive breakpoints                                      */
/* ========================================================== */

@media (max-width: 960px) {
    .hero-title { font-size: 40px; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .site-footer-brand { grid-column: 1 / -1; }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: static;
    }
    .admin-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .site-nav-inner {
        flex-wrap: wrap;
        position: relative;
    }
    .site-nav-toggle { display: flex; }
    .site-nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #111122;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 12px;
        gap: 6px;
        margin-top: 12px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }
    .site-nav-checkbox:checked ~ .site-nav-links {
        display: flex;
    }
    .site-nav-links a {
        padding: 10px 12px;
        border-radius: 8px;
    }
    .site-nav-links a:hover { background: rgba(255, 255, 255, 0.04); }

    .hero { padding: 50px 16px 40px; }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 15px; }
    .hero-ctas .btn { flex: 1 1 auto; text-align: center; }

    .section { padding: 48px 16px; }
    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 14px; }

    .site-footer { padding: 36px 16px 20px; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 24px; }

    .whatsapp-fab {
        width: 52px;
        height: 52px;
        right: 16px;
    }
    .whatsapp-fab svg { width: 26px; height: 26px; }

    .legal { padding: 40px 16px 30px; }
    .legal-header h1 { font-size: 28px; }

    .auth-wrap { padding: 32px 16px; }

    .admin-h1 { font-size: 22px; }
    .admin-stat-value { font-size: 18px; }
    .admin-filter input,
    .admin-filter select { min-width: 140px; flex: 1 1 140px; }
    .admin-table th, .admin-table td { padding: 10px 8px; font-size: 12px; }

    .price-card-highlight { transform: none; }

    .phone-frame { width: 200px; }
    .phone-frame-center { width: 220px; transform: translateY(-6px); }
    .phone-frame-center:hover { transform: translateY(-10px); }
    .videos-row { gap: 14px; }
}
