/* ── Dashboard Layout ───────────────────────────────────────────────────── */

.r33-dashboard {
    position: relative;
    display: flex;
    gap: 0;
    min-height: 600px;
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    overflow: hidden;      
    box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.08),  /* subtle outer glow */
    0 8px 30px rgba(0, 0, 0, 0.6);       /* depth */
}



/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.r33-dashboard-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #111;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    padding: 30px 0;
}

.r33-dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.r33-dashboard-nav li {
    margin: 0;
}

.r33-dashboard-nav a {
    display: block;
    padding: 12px 24px;
    color: #999;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.r33-dashboard-nav a:hover {
    color: #c9a84c;
    background: #1a1a1a;
    border-left-color: #c9a84c;
}

.r33-dashboard-nav li.active a {
    color: #c9a84c;
    background: #1a1a1a;
    border-left-color: #c9a84c;
    font-weight: 600;
}

.r33-nav-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e53e3e !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    margin-left: 8px;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -1px;
    flex-shrink: 0;
}

/* ── Main Content ────────────────────────────────────────────────────────── */

.r33-dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 30px;
    background: #0a0a0a;
}

/* ── Module Base ─────────────────────────────────────────────────────────── */

.r33-module {
    max-width: 900px;
}

.r33-module h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.r33-module-hint {
    color: #666;
    font-size: 13px;
    margin: 10px 0 24px 0;
}

/* ── Inline notices (tier limits, locks, upgrade prompts) ────────────────── */

.r33-notice {
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.r33-notice p {
    margin: 0 0 6px;
}

.r33-notice p:last-of-type {
    margin-bottom: 0;
}

.r33-notice--warning {
    background: #2a1a0a;
    border: 1px solid #7a3f00;
    color: #e09050;
}

.r33-notice--info {
    background: #0d1f2a;
    border: 1px solid #1a4a6a;
    color: #7ab8d8;
}

.r33-notice--upgrade {
    background: #1a1a0d;
    border: 1px solid #5a4a00;
    color: #c8a830;
}

.r33-notice-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 16px;
    background: #c8a830;
    color: #111 !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
}

.r33-notice-cta:hover {
    background: #e0c040;
}

/* ── Form Fields ─────────────────────────────────────────────────────────── */

.r33-field {
    margin-bottom: 18px;
}

.r33-field label,
.r33-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.r33-field input,
.r33-field textarea,
.r33-field select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    outline: none;
}

.r33-field input:focus,
.r33-field textarea:focus,
.r33-field select:focus {
    border-color: #c9a84c;
}

.r33-field-helper {
    font-size: 13px;
    color: #9a9a9a;
    margin-top: 6px;
    line-height: 1.5;
}

.r33-field-helper strong {
    color: #c9a84c;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.r33-save-btn,
button.r33-save-btn {
    background: #c9a84c;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 11px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.r33-save-btn:hover {
    background: #e0bc5a;
}

.r33-secondary-btn {
    background: transparent;
    color: #c9a84c;
    border: 1px solid #c9a84c;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.r33-secondary-btn:hover {
    background: #c9a84c;
    color: #000;
}

.r33-back-btn {
    display: inline-block;
    margin-top: 12px;
    color: #c9a84c;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #c9a84c;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.r33-back-btn:hover {
    background: #c9a84c;
    color: #000;
}

.r33-btn-danger {
    background: transparent;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.r33-btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

.r33-btn-ghost {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.r33-btn-ghost:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

.r33-btn-saving {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.r33-btn-saving::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: r33spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Status & Dividers ───────────────────────────────────────────────────── */

#r33-save-status {
    display: inline-block;
    margin-left: 14px;
    font-size: 13px;
    color: #c9a84c;
}

.r33-save-status {
    min-height: 20px;
    font-size: 13px;
    color: #c9a84c;
    margin-bottom: 16px;
}

.r33-divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 20px 0;
}

.r33-required {
    color: #c9a84c;
    font-size: 12px;
}

/* ── Animations ──────────────────────────────────────────────────────────── */

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

/* ── Textarea ────────────────────────────────────────────────────────────── */

.r33-textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    background: #141414;
    border: 1px solid #2b2b2b;
    border-radius: 6px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
}

.r33-textarea:focus {
    border-color: #c9a84c;
}

/* ── Toggle Switch (shared) ──────────────────────────────────────────────── */
/* Used by availability, account, and services modules */

.r33-toggle,
.r33-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.r33-toggle input,
.r33-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.r33-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #2a2a2a;
    border-radius: 24px;
    transition: background 0.2s ease;
}

.r33-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #666;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.r33-toggle input:checked + .r33-toggle-slider,
.r33-toggle-switch input:checked + .r33-toggle-slider {
    background: #1a3a1a;
}

.r33-toggle input:checked + .r33-toggle-slider:before,
.r33-toggle-switch input:checked + .r33-toggle-slider:before {
    transform: translateX(20px);
    background: #c9a84c;
}

/* ── Toggle Switch (gold variant — used by services and photos) ──────────── */

.r33-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.r33-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.r33-slider {
    position: absolute;
    inset: 0;
    background: #2a2a2a;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.r33-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #666;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.r33-switch input:checked + .r33-slider {
    background: #1e1a0f;
}

.r33-switch input:checked + .r33-slider:before {
    background: #c9a84c;
    transform: translateX(20px);
}

/* ── Card Option Selector (shared — used by services and description) ─────── */

.r33-option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.r33-option {
    padding: 10px 18px;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    background: #1a1a1a;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    user-select: none;
}

.r33-option:hover {
    border-color: #555;
    color: #fff;
}

.r33-option.active {
    border-color: #c9a84c;
    background: #1e1a0f;
    color: #c9a84c;
}

/* ── Misc ────────────────────────────────────────────────────────────────── */

.r33-section-messages {
    height: 70vh;
}

.r33-display-name {
    letter-spacing: 1px;
    font-weight: 600;
}

#r33-country-select,
#r33-city-select {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 4px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#r33-country-select:focus,
#r33-city-select:focus {
    border-color: #c9a84c !important;
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

#r33-country-select option,
#r33-city-select option {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

.r33-module input:focus,
.r33-module textarea:focus,
.r33-module select:focus {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}