/**
 * ShortStay Frontend Styles
 * Version: 1.3
 */

/* ============================================
   DASHBOARD PAGE RESET
   Complete isolation from theme styles
   ============================================ */

/* Admin dashboard - hide theme chrome */
.shortstay-dashboard .flv-header,
.shortstay-dashboard .flv-footer,
.shortstay-dashboard .flv-section,
.shortstay-dashboard .entry-header,
.shortstay-dashboard .page-header,
.shortstay-bookings .flv-header,
.shortstay-bookings .flv-footer {
    display: none !important;
}

/* Fix flv-main height collapse on dashboard pages */
body:has(.ss-dashboard-page) .flv-main,
body:has(.admin-header-bar) .flv-main,
body:has(.shortstay-dashboard) .flv-main {
    height: auto !important;
    min-height: 100vh !important;
}

.shortstay-dashboard .site-content,
.shortstay-dashboard .content-area,
.shortstay-dashboard main,
.shortstay-bookings .site-content,
.shortstay-bookings .content-area,
.shortstay-bookings main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Universal dashboard wrapper - applied to ALL dashboard pages */
.ss-dashboard-page {
    /* System font stack */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    
    /* Force full viewport width, breaking out of theme containers */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 20px 20px 0 20px;
    
    /* Background */
    background: #f8fafc;
    min-height: 100vh;
    
    /* Reset box model */
    box-sizing: border-box;
}

/* Ensure all children inherit the reset */
.ss-dashboard-page *,
.ss-dashboard-page *::before,
.ss-dashboard-page *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* Reset headings */
.ss-dashboard-page h1,
.ss-dashboard-page h2,
.ss-dashboard-page h3,
.ss-dashboard-page h4,
.ss-dashboard-page h5,
.ss-dashboard-page h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5em 0;
    color: #1f2937;
}

/* Reset paragraphs */
.ss-dashboard-page p {
    margin: 0 0 1em 0;
    font-family: inherit;
}

/* Reset links */
.ss-dashboard-page a {
    color: var(--ss-primary, #8c68da);
    text-decoration: none;
}

.ss-dashboard-page a:hover {
    text-decoration: underline;
}

/* Button links must stay white */
.ss-dashboard-page a.btn-small,
.ss-dashboard-page a.btn-primary,
.ss-dashboard-page a.btn-stripe-connect,
.ss-dashboard-page .checklist-item a.btn-small {
    color: #ffffff !important;
    text-decoration: none !important;
}

.ss-dashboard-page a.btn-small:hover,
.ss-dashboard-page a.btn-primary:hover,
.ss-dashboard-page a.btn-stripe-connect:hover,
.ss-dashboard-page .checklist-item a.btn-small:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ============================================
   PAYMENT STATUS NOTICE (appears on all pages)
   ============================================ */
.ss-status-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--ss-warning, #f59e0b) 0%, #d97706 100%);
    color: white;
    margin: -20px -20px 20px -20px;
}

.ss-status-notice .notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ss-status-notice .notice-content {
    flex: 1;
}

.ss-status-notice .notice-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.ss-status-notice .notice-content p {
    margin: 0;
    font-size: 13px;
    opacity: 0.95;
}

.ss-status-notice .notice-btn {
    background: white;
    color: #d97706 !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ss-status-notice .notice-btn:hover {
    background: #fef3c7;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.ss-status-notice.inactive {
    background: linear-gradient(135deg, var(--ss-warning, #f59e0b) 0%, #d97706 100%);
}

.ss-status-notice.warning {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.ss-status-notice.warning .notice-btn {
    color: #dc2626 !important;
}

/* ============================================
   Hide Theme Elements on Dashboard Pages
   ============================================ */
body:has(.ss-dashboard-page) .site-header,
body:has(.ss-dashboard-page) #site-header,
body:has(.ss-dashboard-page) .page-header,
body:has(.ss-dashboard-page) .site-footer,
body:has(.ss-dashboard-page) #wpadminbar,
body:has(.ss-dashboard-page) .entry-title,
body:has(.ss-dashboard-page) .entry-header,
body:has(.ss-dashboard-page) article > header {
    display: none !important;
}

body:has(.ss-dashboard-page) {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: #f8fafc !important;
}

body:has(.ss-dashboard-page) .page-content,
body:has(.ss-dashboard-page) .page-content .container,
body:has(.ss-dashboard-page) .site-main,
body:has(.ss-dashboard-page) .entry-content,
body:has(.ss-dashboard-page) #main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   Hide Theme Page Titles on Dashboard Pages
   ============================================ */
body.page .entry-title,
body.page .entry-header h1,
body.page article > header h1,
body:has(.shortstay-calendar-page) .entry-title,
body:has(.shortstay-properties) .entry-title,
body:has(.shortstay-bookings) .entry-title,
body:has(.shortstay-dashboard) .entry-title,
body:has(.shortstay-add-property) .entry-title,
body:has(.shortstay-customize) .entry-title,
body:has(.shortstay-settings) .entry-title,
body:has(.admin-header-bar) .entry-title,
body:has(.admin-header-bar) .entry-header,
body:has(.admin-header-bar) article > header {
    display: none !important;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --ss-primary: #8c68da;
    --ss-primary-dark: #7b5bc4;
    --ss-primary-light: #a084e8;
    --ss-secondary: #ff7e99;
    --ss-secondary-dark: #e86b85;
    --ss-success: #48bb78;
    --ss-success-dark: #38a169;
    --ss-danger: #ef4444;
    --ss-warning: #f59e0b;
    --ss-gray-50: #f9fafb;
    --ss-gray-100: #f3f4f6;
    --ss-gray-200: #e5e7eb;
    --ss-gray-300: #d1d5db;
    --ss-gray-400: #9ca3af;
    --ss-gray-500: #6b7280;
    --ss-gray-600: #4b5563;
    --ss-gray-700: #374151;
    --ss-gray-800: #1f2937;
    --ss-gray-900: #111827;
    --ss-radius: 8px;
    --ss-radius-lg: 12px;
    --ss-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --ss-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --ss-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --ss-gradient: linear-gradient(135deg, #8c68da 0%, #ff7e99 100%);
}

/* ============================================
   Subscription Status Bar
   ============================================ */
.shortstay-subscription-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 20px;
    font-size: 14px;
}

.shortstay-subscription-bar.active {
    background: var(--ss-gradient);
    color: white;
}

.shortstay-subscription-bar.inactive {
    background: linear-gradient(135deg, var(--ss-warning) 0%, #d97706 100%);
    color: white;
}

.subscription-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-icon {
    font-size: 18px;
}

.status-text {
    flex: 1;
}

.btn-upgrade,
.btn-manage {
    padding: 6px 16px;
    border-radius: var(--ss-radius);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-upgrade {
    background: white;
    color: var(--ss-gray-800);
}

.btn-upgrade:hover {
    background: var(--ss-gray-100);
    transform: translateY(-1px);
}

.btn-manage {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-manage:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   Auth Pages (Login, Forgot Password)
   ============================================ */
.shortstay-auth-page {
    background: linear-gradient(135deg, var(--ss-gray-50) 0%, var(--ss-gray-100) 100%);
    min-height: 100vh;
}

.shortstay-auth-page .site-header,
.shortstay-auth-page .site-footer,
.shortstay-auth-page header,
.shortstay-auth-page footer {
    display: none !important;
}

.shortstay-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    background: white;
    border-radius: var(--ss-radius-lg);
    box-shadow: var(--ss-shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.auth-logo h1 {
    font-size: 24px;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.auth-subtitle {
    color: var(--ss-gray-500);
    margin: 0;
    font-size: 15px;
}

.auth-message {
    padding: 12px 16px;
    border-radius: var(--ss-radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.auth-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-700);
    margin-bottom: 6px;
}

.forgot-link {
    font-weight: 400;
    color: var(--ss-primary);
    text-decoration: none;
    font-size: 13px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ss-gray-300);
    border-radius: var(--ss-radius);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.remember-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    color: var(--ss-gray-600);
    font-size: 14px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--ss-gray-200);
}

.auth-footer p {
    color: var(--ss-gray-500);
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: var(--ss-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-branding {
    margin-top: 32px;
    text-align: center;
}

.auth-branding p {
    color: var(--ss-gray-400);
    font-size: 12px;
    margin: 0;
}

.auth-branding a {
    color: var(--ss-gray-500);
    text-decoration: none;
}

.auth-branding a:hover {
    color: var(--ss-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--ss-gradient);
    color: white !important;
    border: none;
    padding: 14px 24px;
    border-radius: var(--ss-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(140, 104, 218, 0.4);
    color: white !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--ss-gray-700);
    border: 1px solid var(--ss-gray-300);
    padding: 12px 20px;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--ss-gray-50);
    border-color: var(--ss-gray-400);
}

.btn-full-width {
    width: 100%;
}

/* ============================================
   Dashboard Styles
   ============================================ */

/* Hide theme header nav and footer on dashboard pages */
body:has(.shortstay-dashboard) .ss-header__inner,
body:has(.shortstay-properties) .ss-header__inner,
body:has(.shortstay-bookings) .ss-header__inner,
body:has(.shortstay-add-property) .ss-header__inner,
body:has(.shortstay-calendar-page) .ss-header__inner,
body:has(.shortstay-settings) .ss-header__inner,
body:has(.shortstay-customize) .ss-header__inner,
body:has(.shortstay-payment) .ss-header__inner,
body:has(.admin-header-bar) .ss-header__inner,
body:has(.shortstay-dashboard) .ss-header__nav,
body:has(.shortstay-dashboard) .ss-header__inner nav,
body:has(.shortstay-dashboard) .ss-header__cta,
body:has(.shortstay-properties) .ss-header__nav,
body:has(.shortstay-properties) .ss-header__inner nav,
body:has(.shortstay-properties) .ss-header__cta,
body:has(.shortstay-bookings) .ss-header__nav,
body:has(.shortstay-bookings) .ss-header__inner nav,
body:has(.shortstay-bookings) .ss-header__cta,
body:has(.shortstay-add-property) .ss-header__nav,
body:has(.shortstay-add-property) .ss-header__inner nav,
body:has(.shortstay-add-property) .ss-header__cta,
body:has(.shortstay-calendar-page) .ss-header__nav,
body:has(.shortstay-calendar-page) .ss-header__inner nav,
body:has(.shortstay-calendar-page) .ss-header__cta,
body:has(.shortstay-settings) .ss-header__nav,
body:has(.shortstay-settings) .ss-header__inner nav,
body:has(.shortstay-settings) .ss-header__cta,
body:has(.shortstay-customize) .ss-header__nav,
body:has(.shortstay-customize) .ss-header__inner nav,
body:has(.shortstay-customize) .ss-header__cta,
body:has(.admin-header-bar) .ss-header__nav,
body:has(.admin-header-bar) .ss-header__inner nav,
body:has(.admin-header-bar) .ss-header__cta {
    display: none !important;
}

/* Hide theme footer on dashboard pages */
body:has(.shortstay-dashboard) .ss-footer,
body:has(.shortstay-properties) .ss-footer,
body:has(.shortstay-bookings) .ss-footer,
body:has(.shortstay-add-property) .ss-footer,
body:has(.shortstay-calendar-page) .ss-footer,
body:has(.shortstay-settings) .ss-footer,
body:has(.shortstay-customize) .ss-footer,
body:has(.admin-header-bar) .ss-footer,
body:has(.shortstay-dashboard) footer.ss-footer,
body:has(.shortstay-properties) footer.ss-footer,
body:has(.shortstay-bookings) footer.ss-footer,
body:has(.shortstay-add-property) footer.ss-footer,
body:has(.shortstay-calendar-page) footer.ss-footer,
body:has(.shortstay-settings) footer.ss-footer,
body:has(.shortstay-customize) footer.ss-footer,
body:has(.admin-header-bar) footer.ss-footer {
    display: none !important;
}

/* Override theme container width on dashboard pages */
body:has(.shortstay-dashboard) .ss-container,
body:has(.shortstay-properties) .ss-container,
body:has(.shortstay-bookings) .ss-container,
body:has(.shortstay-add-property) .ss-container,
body:has(.shortstay-calendar-page) .ss-container,
body:has(.shortstay-settings) .ss-container,
body:has(.shortstay-customize) .ss-container,
body:has(.shortstay-payment) .ss-container,
body:has(.admin-header-bar) .ss-container {
    max-width: 1360px !important;
}

/* Also hide the page title since dashboard has its own */
body:has(.admin-header-bar) .ss-page__title {
    display: none !important;
}

/* Hide Flavour theme page title and footer on admin pages */
body:has(.admin-header-bar) .flv-page__content > h1,
body:has(.admin-header-bar) h1[style*="margin-bottom: var(--flv-space"],
body:has(.admin-header-bar) .flv-footer,
body:has(.admin-header-bar) footer.flv-footer {
    display: none !important;
}

/* Override theme's narrow page content on dashboard pages */
body:has(.shortstay-dashboard) .ss-page__content,
body:has(.shortstay-properties) .ss-page__content,
body:has(.shortstay-bookings) .ss-page__content,
body:has(.shortstay-add-property) .ss-page__content,
body:has(.shortstay-calendar-page) .ss-page__content,
body:has(.shortstay-settings) .ss-page__content,
body:has(.shortstay-customize) .ss-page__content,
body:has(.shortstay-payment) .ss-page__content,
body:has(.admin-header-bar) .ss-page__content {
    max-width: none !important;
}

.shortstay-dashboard {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header .header-content {
    flex: 1;
}

.dashboard-header h1 {
    font-size: 28px;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.dashboard-header p {
    color: var(--ss-gray-500);
    margin: 0;
    font-size: 16px;
}

/* Site Status Indicator */
.header-site-status {
    flex-shrink: 0;
}

.site-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.site-status.live {
    background: #ecfdf5;
    color: #059669;
}

.site-status.offline {
    background: #fef3c7;
    color: #b45309;
}

.site-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.site-status.live .status-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.site-status.offline .status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.site-status a {
    color: inherit;
    text-decoration: underline;
}

.site-status a:hover {
    text-decoration: none;
}

@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-site-status {
        width: 100%;
    }
    
    .site-status {
        justify-content: center;
    }
}

/* Status Notices */
.status-notice {
    padding: 16px 20px;
    border-radius: var(--ss-radius);
    margin-bottom: 32px;
}

.status-notice.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.status-notice.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.status-notice strong {
    display: block;
    margin-bottom: 4px;
}

.status-notice p {
    margin: 0;
    font-size: 14px;
}

.status-notice a {
    color: inherit;
    font-weight: 600;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: var(--ss-gray-100);
    border-radius: var(--ss-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--ss-gray-800);
}

.stat-label {
    font-size: 14px;
    color: var(--ss-gray-500);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h2 {
    font-size: 20px;
    color: var(--ss-gray-800);
    margin: 0 0 20px 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.action-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ss-shadow-md);
    border-color: var(--ss-primary);
}

.action-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.action-card h3 {
    font-size: 16px;
    color: var(--ss-gray-800);
    margin: 0 0 4px 0;
}

.action-card p {
    font-size: 13px;
    color: var(--ss-gray-500);
    margin: 0;
}

/* Account Sections */
.account-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.account-section {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
}

.account-section h2 {
    font-size: 18px;
    color: var(--ss-gray-800);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ss-gray-200);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-item strong {
    font-size: 12px;
    color: var(--ss-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 15px;
    color: var(--ss-gray-800);
}

.btn-edit {
    background: var(--ss-gray-100);
    color: var(--ss-gray-700);
    border: none;
    padding: 10px 16px;
    border-radius: var(--ss-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: var(--ss-gray-200);
}

/**
 * Hide front-end theme elements on dashboard/admin pages
 * Add this to your main plugin CSS (style.css) or template CSS
 */

/* Hide theme header, nav, and CTA on all dashboard pages */
body:has(.admin-header-bar) .ss-header,
body:has(.admin-header-bar) .ss-header__inner,
body:has(.admin-header-bar) .ss-header__nav,
body:has(.admin-header-bar) .ss-header__cta,
body:has(.admin-header-bar) header:not(.admin-header-bar),
body:has(.admin-header-bar) .site-header,
body:has(.admin-header-bar) #site-header,
body:has(.shortstay-dashboard) .ss-header,
body:has(.shortstay-dashboard) header:not(.admin-header-bar),
body:has(.dashboard-nav) .ss-header,
body:has(.dashboard-nav) header:not(.admin-header-bar) {
    display: none !important;
}

/* Hide the duplicate page titles (h1) that WordPress/theme adds */
body:has(.admin-header-bar) .entry-header,
body:has(.admin-header-bar) .page-header,
body:has(.admin-header-bar) .entry-title,
body:has(.admin-header-bar) article > header,
body:has(.shortstay-dashboard) .entry-header,
body:has(.shortstay-dashboard) .page-header,
body:has(.shortstay-dashboard) .entry-title,
body:has(.dashboard-nav) .entry-header,
body:has(.dashboard-nav) .page-header,
body:has(.dashboard-nav) .entry-title {
    display: none !important;
}

/* Hide theme footer on admin pages */
body:has(.admin-header-bar) .ss-footer,
body:has(.admin-header-bar) .site-footer,
body:has(.admin-header-bar) footer.ss-footer,
body:has(.shortstay-dashboard) .ss-footer,
body:has(.shortstay-dashboard) .site-footer,
body:has(.dashboard-nav) .ss-footer,
body:has(.dashboard-nav) .site-footer {
    display: none !important;
}

/* Also hide "Book Now" button if it bleeds through */
body:has(.admin-header-bar) .book-now-btn,
body:has(.admin-header-bar) a[href*="book"],
body:has(.dashboard-nav) .book-now-btn {
    /* Only hide if it's in the theme header area */
}

/* Alternative: More specific selectors if :has() isn't working */
.ss-dashboard-page .ss-header,
.ss-dashboard-page .site-header,
.ss-dashboard-page header:not(.admin-header-bar),
.ss-dashboard-page .entry-header,
.ss-dashboard-page .page-header,
.ss-dashboard-page .entry-title,
.ss-dashboard-page .ss-footer,
.ss-dashboard-page .site-footer {
    display: none !important;
}

/* Reset content area for dashboard */
.ss-dashboard-page .entry-content,
.ss-dashboard-page .page-content,
.ss-dashboard-page article {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure dashboard background */
body:has(.admin-header-bar),
body:has(.dashboard-nav),
body.ss-dashboard-page {
    background: #f8fafc !important;
}

/* ============================================
   Enhanced Dashboard Styles
   ============================================ */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-content h1 {
    font-size: 28px;
    color: var(--ss-gray-800);
    margin: 0 0 4px 0;
}

.header-content p {
    color: var(--ss-gray-500);
    margin: 0;
    font-size: 16px;
}

.btn-view-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ss-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: var(--ss-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-view-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(140, 104, 218, 0.4);
    color: white;
}

/* Status Notice Enhanced */
.status-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--ss-radius-lg);
    margin-bottom: 32px;
}

.status-notice .notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.status-notice .notice-content {
    flex: 1;
}

.status-notice .notice-content strong {
    display: block;
    margin-bottom: 2px;
}

.status-notice .notice-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.status-notice .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* Setup Progress */
.setup-progress {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
    margin-bottom: 32px;
    border: 2px solid var(--ss-primary);
}

.setup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.setup-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--ss-gray-800);
}

.progress-count {
    font-size: 14px;
    color: var(--ss-gray-500);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: var(--ss-gray-200);
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--ss-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.setup-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    transition: all 0.2s;
}

.checklist-item.complete {
    background: #f0fdf4;
}

.checklist-item .check-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--ss-gray-200);
    color: var(--ss-gray-400);
}

.checklist-item.complete .check-icon {
    background: var(--ss-success);
    color: white;
}

.checklist-item .check-content {
    flex: 1;
}

.checklist-item .check-content strong {
    display: block;
    color: var(--ss-gray-800);
    font-size: 15px;
    margin-bottom: 2px;
}

.checklist-item .check-content p {
    margin: 0;
    color: var(--ss-gray-500);
    font-size: 13px;
}

.btn-small {
    padding: 8px 16px;
    background: var(--ss-primary);
    color: #ffffff !important;
    border: none;
    border-radius: var(--ss-radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-small:hover {
    background: var(--ss-primary-dark);
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-small.btn-outline {
    background: transparent;
    color: var(--ss-primary) !important;
    border: 1px solid var(--ss-primary);
}

.btn-small.btn-outline:hover {
    background: var(--ss-primary);
    color: #ffffff !important;
}

.btn-small.btn-legal-outline {
    background: transparent;
    color: #7c3aed !important;
    border: 1px solid #7c3aed;
}

.btn-small.btn-legal-outline:hover {
    background: #7c3aed;
    color: #ffffff !important;
}

.ss-dashboard-page .btn-small.btn-legal-outline,
.ss-dashboard-page a.btn-small.btn-legal-outline {
    color: #7c3aed !important;
}

.ss-dashboard-page .btn-small.btn-legal-outline:hover,
.ss-dashboard-page a.btn-small.btn-legal-outline:hover {
    background: #7c3aed;
    color: #ffffff !important;
}

/* Stats Enhanced */
.stat-card .stat-limit {
    font-size: 14px;
    color: var(--ss-gray-400);
    font-weight: 400;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-section {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
}

.dashboard-section h2 {
    font-size: 18px;
    color: var(--ss-gray-800);
    margin: 0 0 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

/* Collapsible Sections */
.collapsible .section-header,
.collapsible .analytics-header {
    cursor: pointer;
    user-select: none;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-row h2 {
    margin: 0;
}

.collapse-toggle {
    font-size: 12px;
    color: var(--ss-gray-400);
    transition: transform 0.2s ease;
}

.collapsible.collapsed .collapse-toggle {
    transform: rotate(-90deg);
}

.collapsible .section-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.collapsible.collapsed .section-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.collapsible.collapsed {
    padding-bottom: 16px;
}

.collapsible .section-header:hover .collapse-toggle,
.collapsible .analytics-header:hover .collapse-toggle {
    color: var(--ss-primary);
}

.section-header .section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-all {
    color: var(--ss-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Action Cards Enhanced */
.action-card.highlight {
    border: 2px solid var(--ss-primary);
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.05) 0%, rgba(255, 126, 153, 0.05) 100%);
}

.action-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.action-card.disabled .action-icon {
    filter: grayscale(1);
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    transition: all 0.2s;
}

.booking-item:hover {
    background: var(--ss-gray-100);
}

.booking-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.booking-status.confirmed {
    background: var(--ss-success);
}

.booking-status.pending {
    background: var(--ss-warning);
}

.booking-status.cancelled {
    background: var(--ss-danger);
}

.booking-status.completed {
    background: var(--ss-gray-400);
}

.booking-status.checked_in {
    background: var(--ss-primary);
}

.booking-info {
    flex: 1;
    min-width: 0;
}

.booking-info strong {
    display: block;
    color: var(--ss-gray-800);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-property {
    color: var(--ss-gray-500);
    font-size: 13px;
}

.booking-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ss-gray-600);
    white-space: nowrap;
}

.date-separator {
    color: var(--ss-gray-400);
}

.booking-amount {
    font-weight: 600;
    color: var(--ss-gray-800);
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--ss-gray-600);
    font-weight: 500;
    margin: 0 0 4px 0;
}

.empty-state span {
    color: var(--ss-gray-400);
    font-size: 13px;
}

.empty-state-small {
    text-align: center;
    padding: 20px;
    color: var(--ss-gray-500);
    font-size: 14px;
}

/* Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 20px;
    box-shadow: var(--ss-shadow);
}

.sidebar-widget h3 {
    font-size: 16px;
    color: var(--ss-gray-800);
    margin: 0 0 16px 0;
}

.sidebar-widget .widget-description {
    font-size: 13px;
    color: var(--ss-gray-500);
    margin: -10px 0 16px 0;
    line-height: 1.4;
}

/* Subscription Widget */
.subscription-widget .package-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.package-badge.starter {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
}

.package-badge.growth {
    background: var(--ss-gradient);
    color: white;
}

.package-badge.professional {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

.subscription-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-meta .meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.subscription-meta .meta-row span {
    color: var(--ss-gray-500);
}

.subscription-meta .meta-row strong {
    color: var(--ss-gray-800);
}

.subscription-meta .status-active {
    color: var(--ss-success) !important;
}

.subscription-inactive {
    text-align: center;
    padding: 16px;
    color: var(--ss-gray-500);
}

.widget-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ss-gray-200);
    color: var(--ss-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.widget-link:hover {
    text-decoration: underline;
}

/* Check-in List */
.checkin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkin-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkin-date {
    width: 48px;
    height: 48px;
    background: var(--ss-gray-100);
    border-radius: var(--ss-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkin-date .day {
    font-size: 18px;
    font-weight: 700;
    color: var(--ss-gray-800);
    line-height: 1;
}

.checkin-date .month {
    font-size: 11px;
    color: var(--ss-gray-500);
    text-transform: uppercase;
}

.checkin-info strong {
    display: block;
    font-size: 14px;
    color: var(--ss-gray-800);
}

.checkin-info span {
    font-size: 12px;
    color: var(--ss-gray-500);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--ss-gray-700);
    text-decoration: none;
    border-radius: var(--ss-radius);
    font-size: 14px;
    transition: all 0.2s;
}

.quick-links a:hover {
    background: var(--ss-gray-100);
    color: var(--ss-primary);
}

.quick-links a.quick-link-highlight {
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.1) 0%, rgba(255, 126, 153, 0.1) 100%);
    color: var(--ss-primary);
    font-weight: 600;
    border: 1px solid rgba(140, 104, 218, 0.2);
}

.quick-links a.quick-link-highlight:hover {
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.15) 0%, rgba(255, 126, 153, 0.15) 100%);
    border-color: var(--ss-primary);
}

/* Stripe Connect Widget */
.stripe-connect-widget .connect-status {
    text-align: center;
    padding: 8px 0;
}

.stripe-connect-widget .status-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stripe-connect-widget .connect-status p {
    color: var(--ss-gray-600);
    font-size: 13px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.btn-stripe-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #635bff;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: var(--ss-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
}

.btn-stripe-connect:hover {
    background: #4b45c6;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}

.btn-stripe-connect .stripe-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.5px;
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.stripe-connect-widget .status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-badge.active {
    background: #f0fdf4;
    color: var(--ss-success);
}

.status-badge.pending {
    background: #fffbeb;
    color: #b45309;
}

.status-badge.error {
    background: #fef2f2;
    color: var(--ss-danger);
}

.stripe-connect-widget .account-info {
    margin-bottom: 12px;
}

.stripe-connect-widget .account-info strong {
    display: block;
    color: var(--ss-gray-800);
    font-size: 15px;
}

.stripe-connect-widget .account-info .account-email,
.stripe-connect-widget .account-info .account-id {
    color: var(--ss-gray-500);
    font-size: 13px;
}

.stripe-connect-widget .status-message {
    background: #fffbeb;
    padding: 10px 12px;
    border-radius: var(--ss-radius);
    font-size: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.connect-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.connect-features .feature {
    font-size: 13px;
    color: var(--ss-gray-600);
}

.connect-features .feature.enabled {
    color: var(--ss-success);
}

.connect-features .feature.disabled {
    color: var(--ss-danger);
}

.connect-actions {
    border-top: 1px solid var(--ss-gray-200);
    padding-top: 12px;
    margin-top: 8px;
}

.connect-actions .widget-link {
    margin: 0 0 8px 0;
    padding: 0;
    border: none;
}

.btn-disconnect {
    background: none;
    border: none;
    color: var(--ss-gray-400);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.btn-disconnect:hover {
    color: var(--ss-danger);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .checklist-item {
        flex-wrap: wrap;
    }
    
    .checklist-item .btn-small {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
    
    .booking-item {
        flex-wrap: wrap;
    }
    
    .booking-dates {
        width: 100%;
        order: 3;
        margin-top: 8px;
    }
    
    .sidebar-widget {
        min-width: 100%;
    }
}

/* ============================================
   Add Property / Form Pages
   ============================================ */

.shortstay-add-property {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

.shortstay-add-property .form-header {
    text-align: center;
    margin-bottom: 40px;
}

.shortstay-add-property .form-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.shortstay-add-property .form-header p {
    color: var(--ss-gray-500);
    font-size: 16px;
    margin: 0;
}

.shortstay-add-property .form-section {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--ss-shadow);
}

.shortstay-add-property .form-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ss-gray-200);
}

.shortstay-add-property .section-help {
    color: var(--ss-gray-500);
    font-size: 14px;
    margin: -16px 0 24px 0;
}

.shortstay-add-property .form-group {
    margin-bottom: 24px;
}

.shortstay-add-property .form-group:last-child {
    margin-bottom: 0;
}

.shortstay-add-property .form-group label {
    display: block;
    font-weight: 600;
    color: var(--ss-gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.shortstay-add-property .form-group input[type="text"],
.shortstay-add-property .form-group input[type="number"],
.shortstay-add-property .form-group input[type="email"],
.shortstay-add-property .form-group input[type="tel"],
.shortstay-add-property .form-group input[type="url"],
.shortstay-add-property .form-group textarea,
.shortstay-add-property .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 15px;
    color: var(--ss-gray-800);
    background: white;
    transition: all 0.2s;
}

.shortstay-add-property .form-group input:focus,
.shortstay-add-property .form-group textarea:focus,
.shortstay-add-property .form-group select:focus {
    outline: none;
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px rgba(140, 104, 218, 0.1);
}

.shortstay-add-property .form-group input::placeholder,
.shortstay-add-property .form-group textarea::placeholder {
    color: var(--ss-gray-400);
}

.shortstay-add-property .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.shortstay-add-property .form-group select {
    cursor: pointer;
    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='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.shortstay-add-property .help-text {
    font-size: 13px;
    color: var(--ss-gray-500);
    margin-top: 6px;
}

.shortstay-add-property .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shortstay-add-property .form-row .form-group {
    margin-bottom: 0;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--ss-gray-50);
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--ss-gray-700);
}

.amenity-checkbox:hover {
    border-color: var(--ss-primary);
    background: white;
}

.amenity-checkbox input[type="checkbox"] {
    display: none;
}

.amenity-checkbox input[type="checkbox"]:checked + .amenity-icon {
    transform: scale(1.1);
}

.amenity-checkbox:has(input:checked) {
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.1) 0%, rgba(255, 126, 153, 0.1) 100%);
    border-color: var(--ss-primary);
    color: var(--ss-gray-800);
    font-weight: 500;
}

.amenity-icon {
    font-size: 20px;
    transition: transform 0.2s;
}

/* Photo Upload */
.photo-upload-area {
    background: var(--ss-gray-50);
    border: 2px dashed var(--ss-gray-300);
    border-radius: var(--ss-radius-lg);
    padding: 40px;
    text-align: center;
    transition: all 0.2s;
}

.photo-upload-area:hover {
    border-color: var(--ss-primary);
    background: white;
}

.btn-upload-photos {
    background: var(--ss-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--ss-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-photos:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(140, 104, 218, 0.4);
}

.upload-help {
    color: var(--ss-gray-500);
    font-size: 13px;
    margin-top: 12px;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--ss-radius);
    overflow: hidden;
    background: var(--ss-gray-100);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--ss-gray-200);
}

.form-actions .btn-secondary {
    background: white;
    color: var(--ss-gray-600);
    border: 2px solid var(--ss-gray-300);
    padding: 14px 28px;
    font-size: 15px;
}

.form-actions .btn-secondary:hover {
    border-color: var(--ss-gray-400);
    color: var(--ss-gray-800);
}

.form-actions .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
}

/* Form Loading Overlay */
.form-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--ss-gray-200);
    border-top-color: var(--ss-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-loading p {
    color: var(--ss-gray-600);
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   Properties List Page
   ============================================ */

.shortstay-properties {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

.shortstay-properties .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.shortstay-properties .page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ss-gray-800);
    margin: 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    overflow: hidden;
    box-shadow: var(--ss-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border-color: var(--ss-primary);
}

.property-card-image {
    position: relative;
    height: 200px;
    background: var(--ss-gray-100);
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.property-card-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ss-gray-400);
    font-size: 48px;
}

.property-card-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-card-status.published {
    background: var(--ss-success);
    color: white;
}

.property-card-status.draft {
    background: var(--ss-warning);
    color: white;
}

.property-card-content {
    padding: 20px;
}

.property-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ss-gray-500);
    font-size: 14px;
    margin-bottom: 16px;
}

.property-card-details {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--ss-gray-200);
    border-bottom: 1px solid var(--ss-gray-200);
    margin-bottom: 16px;
}

.property-card-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ss-gray-600);
}

.property-card-detail span {
    font-size: 16px;
}

.property-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ss-primary);
    margin-bottom: 16px;
}

.property-card-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--ss-gray-500);
}

.property-card-actions {
    display: flex;
    gap: 10px;
}

.property-card-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
}

/* Empty State */
.properties-empty {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: var(--ss-radius-lg);
    box-shadow: var(--ss-shadow);
}

.properties-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.properties-empty h2 {
    font-size: 24px;
    color: var(--ss-gray-800);
    margin: 0 0 12px 0;
}

.properties-empty p {
    color: var(--ss-gray-500);
    font-size: 16px;
    margin: 0 0 24px 0;
}

/* ============================================
   Single Property Page
   ============================================ */

.single-property {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Content wrapper inside single property pages */
.single-property > .sp-wrapper,
.single-property > main,
.single-property .sp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure footer is full width on property pages */
.single-property .site-footer,
.single-property footer.site-footer {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Footer inner content stays constrained */
.single-property .site-footer .container,
.single-property footer.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.single-property-header {
    margin-bottom: 32px;
}

.single-property-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.single-property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ss-gray-500);
    font-size: 16px;
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
    border-radius: var(--ss-radius-lg);
    overflow: hidden;
}

.property-gallery .main-image {
    height: 450px;
    background: var(--ss-gray-100);
}

.property-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery .thumbnails {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.property-gallery .thumbnail {
    background: var(--ss-gray-100);
    overflow: hidden;
}

.property-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-gallery .thumbnail:hover img {
    transform: scale(1.05);
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.property-main h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 16px 0;
}

.property-main p {
    color: var(--ss-gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.property-features {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--ss-gray-200);
    border-bottom: 1px solid var(--ss-gray-200);
    margin-bottom: 32px;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-feature .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--ss-gray-100);
    border-radius: var(--ss-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.property-feature .feature-text {
    font-size: 14px;
}

.property-feature .feature-text strong {
    display: block;
    color: var(--ss-gray-800);
    font-size: 16px;
}

.property-feature .feature-text span {
    color: var(--ss-gray-500);
}

.property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.property-amenity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    font-size: 14px;
    color: var(--ss-gray-700);
}

.property-amenity span {
    font-size: 18px;
}

/* Booking Sidebar */
.property-sidebar {
    position: sticky;
    top: 100px;
}

.booking-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 2px solid var(--ss-gray-200);
}

.booking-card-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--ss-gray-800);
    margin-bottom: 4px;
}

.booking-card-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--ss-gray-500);
}

.booking-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ss-gray-600);
    font-size: 14px;
    margin-bottom: 20px;
}

.booking-form-group {
    margin-bottom: 16px;
}

.booking-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    overflow: hidden;
}

.booking-form-row .booking-input {
    padding: 14px;
    border: none;
    border-right: 1px solid var(--ss-gray-200);
}

.booking-form-row .booking-input:last-child {
    border-right: none;
}

.booking-input label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ss-gray-600);
    margin-bottom: 4px;
}

.booking-input input,
.booking-input select {
    width: 100%;
    border: none;
    font-size: 14px;
    color: var(--ss-gray-800);
    background: transparent;
    padding: 0;
}

.booking-input input:focus,
.booking-input select:focus {
    outline: none;
}

.booking-card .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-bottom: 16px;
}

.booking-breakdown {
    border-top: 1px solid var(--ss-gray-200);
    padding-top: 16px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ss-gray-600);
}

.breakdown-row.total {
    font-weight: 700;
    font-size: 16px;
    color: var(--ss-gray-800);
    padding-top: 12px;
    border-top: 1px solid var(--ss-gray-200);
    margin-top: 12px;
}

/* ============================================
   Responsive - Form & Property Pages
   ============================================ */

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-layout {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: static;
    }
    
    .property-gallery {
        grid-template-columns: 1fr;
    }
    
    .property-gallery .main-image {
        height: 350px;
    }
    
    .property-gallery .thumbnails {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }
}

@media (max-width: 768px) {
    .shortstay-add-property .form-row {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        width: 100%;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .shortstay-properties .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .property-features {
        flex-wrap: wrap;
    }
    
    .property-gallery .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-card-details {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Property card as link (public view) */
.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card-link:hover {
    text-decoration: none;
}

.property-card-link .property-card-content h3 {
    transition: color 0.2s;
}

.property-card-link:hover .property-card-content h3 {
    color: var(--ss-primary);
}

/* Public properties grid */
.properties-grid.public-grid {
    padding: 0;
}

.properties-grid.public-grid .property-card-actions {
    display: none;
}

/* Admin Notice Bar */
.admin-notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--ss-radius);
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.admin-notice-content span:first-child {
    font-size: 18px;
}

.btn-view-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: var(--ss-radius);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-view-live:hover {
    background: var(--ss-gray-100);
    transform: translateY(-1px);
}

/* ============================================
   Admin Header Bar
   ============================================ */

.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: var(--ss-radius-lg);
    margin: 0 auto 16px auto;
    border: 1px solid #4c1d95;
    max-width: 1360px;
}

.admin-header-bar .site-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.admin-header-bar .site-title span {
    color: #a78bfa;
    font-weight: 400;
}

.admin-header-bar .admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-bar .admin-user {
    color: #a78bfa;
    font-size: 14px;
    font-weight: 500;
}

.admin-header-bar .admin-logout {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-header-bar .admin-logout:hover {
    background: rgba(255,255,255,0.25);
}

.admin-header-bar .admin-badge {
    background: #7c3aed;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .admin-header-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .admin-header-bar .admin-header-right {
        gap: 12px;
    }
}

/* ============================================
   Dashboard Navigation Menu - Two Row Layout
   ============================================ */

.dashboard-nav {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 12px 16px;
    margin: 0 auto 24px auto;
    box-shadow: var(--ss-shadow);
    border: 1px solid var(--ss-gray-200);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1360px;
}

.dashboard-nav-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dashboard-nav-row.row-secondary {
    padding-top: 8px;
    border-top: 1px solid var(--ss-gray-100);
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--ss-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-600);
    transition: all 0.2s;
    white-space: nowrap;
}

.dashboard-nav a:hover {
    background: var(--ss-gray-100);
    color: var(--ss-gray-800);
}

.dashboard-nav a.active {
    background: var(--ss-gradient);
    color: white;
}

.dashboard-nav a .nav-icon {
    font-size: 16px;
}

.dashboard-nav .nav-spacer {
    flex: 1;
}

.dashboard-nav .btn-view-site {
    background: var(--ss-gray-100);
    color: var(--ss-gray-700);
    padding: 10px 16px;
    border-radius: var(--ss-radius);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-left: auto;
}

.dashboard-nav .btn-view-site:hover {
    background: var(--ss-gray-200);
    color: var(--ss-gray-800);
}

@media (max-width: 768px) {
    .dashboard-nav {
        padding: 12px;
    }
    
    .dashboard-nav-row {
        gap: 8px;
    }
    
    .dashboard-nav a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .dashboard-nav .nav-spacer {
        display: none;
    }
    
    .dashboard-nav .btn-view-site {
        flex: 1 1 100%;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .dashboard-nav a {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    .dashboard-nav .nav-icon {
        min-width: 24px;
    }
}

/* ============================================
   Bookings Page
   ============================================ */

.shortstay-bookings {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Booking Stats */
.booking-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--ss-gray-100);
    border-radius: var(--ss-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ss-gray-800);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--ss-gray-500);
}

/* Booking Filters */
.bookings-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 18px;
    border-radius: var(--ss-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-600);
    background: white;
    border: 1px solid var(--ss-gray-200);
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--ss-primary);
    color: var(--ss-primary);
}

.filter-tab.active {
    background: var(--ss-gradient);
    color: white;
    border-color: transparent;
}

.filter-dropdown select {
    padding: 10px 36px 10px 16px;
    border: 1px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 14px;
    color: var(--ss-gray-700);
    background: white;
    cursor: pointer;
    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='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    box-shadow: var(--ss-shadow);
    overflow: hidden;
    transition: all 0.2s;
}

.booking-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--ss-gray-50);
    border-bottom: 1px solid var(--ss-gray-200);
    gap: 16px;
    flex-wrap: wrap;
}

.booking-property h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.booking-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-status.pending {
    background: #fef3c7;
    color: #b45309;
}

.booking-status.confirmed {
    background: #d1fae5;
    color: #059669;
}

.booking-status.checked-in {
    background: #e9d5ff;
    color: #7c3aed;
}

.booking-status.completed {
    background: #e5e7eb;
    color: #6b7280;
}

.booking-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.booking-dates {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-dates .date-in,
.booking-dates .date-out {
    text-align: center;
}

.booking-dates strong {
    display: block;
    font-size: 16px;
    color: var(--ss-gray-800);
}

.booking-dates small {
    font-size: 12px;
    color: var(--ss-gray-500);
}

.date-arrow {
    color: var(--ss-gray-400);
    font-size: 18px;
}

.nights-badge {
    background: var(--ss-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.booking-card-body {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-avatar {
    width: 48px;
    height: 48px;
    background: var(--ss-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.guest-details strong {
    display: block;
    font-size: 16px;
    color: var(--ss-gray-800);
}

.guest-details span {
    font-size: 14px;
    color: var(--ss-gray-500);
}

.booking-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.booking-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ss-gray-600);
    text-decoration: none;
}

.booking-meta a.meta-item:hover {
    color: var(--ss-primary);
}

.booking-meta .meta-item.source {
    background: var(--ss-gray-100);
    padding: 4px 10px;
    border-radius: var(--ss-radius);
}

.booking-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--ss-gray-200);
    background: var(--ss-gray-50);
    gap: 16px;
    flex-wrap: wrap;
}

.booking-total {
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 13px;
    color: var(--ss-gray-500);
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--ss-gray-800);
}

.booking-actions {
    display: flex;
    gap: 10px;
}

.booking-actions .btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Bookings Empty State */
.bookings-empty {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: var(--ss-radius-lg);
    box-shadow: var(--ss-shadow);
}

.bookings-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.bookings-empty h2 {
    font-size: 24px;
    color: var(--ss-gray-800);
    margin: 0 0 12px 0;
}

.bookings-empty p {
    color: var(--ss-gray-500);
    font-size: 16px;
    margin: 0 0 24px 0;
}

/* Responsive Bookings */
@media (max-width: 1024px) {
    .booking-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .booking-stats {
        grid-template-columns: 1fr;
    }
    
    .bookings-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .booking-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-dates {
        width: 100%;
        justify-content: space-between;
    }
    
    .booking-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .booking-actions {
        justify-content: stretch;
    }
    
    .booking-actions .btn-small {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   Customize Page
   ============================================ */

.shortstay-customize {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ss-shadow);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.action-card:hover {
    border-color: var(--ss-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.action-card .action-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.action-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.action-card p {
    font-size: 14px;
    color: var(--ss-gray-500);
    margin: 0;
}

.customize-coming-soon {
    margin-top: 40px;
}

.customize-coming-soon h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    background: white;
    border-radius: var(--ss-radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: var(--ss-shadow);
}

.feature-item .feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 4px 0;
}

.feature-item p {
    font-size: 14px;
    color: var(--ss-gray-500);
    margin: 0;
}

/* ============================================
   Settings Page
   ============================================ */

.shortstay-settings {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.settings-section {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 28px;
    box-shadow: var(--ss-shadow);
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ss-gray-200);
}

.settings-section .section-subtitle {
    color: var(--ss-gray-500);
    font-size: 14px;
    margin: -12px 0 20px 0;
}

.settings-section .form-group {
    margin-bottom: 20px;
}

.settings-section .form-group label {
    display: block;
    font-weight: 600;
    color: var(--ss-gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.settings-section .form-group input,
.settings-section .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 14px;
    color: var(--ss-gray-800);
    transition: border-color 0.2s;
}

.settings-section .form-group input:focus,
.settings-section .form-group textarea:focus {
    outline: none;
    border-color: var(--ss-primary);
}

.settings-section .help-text {
    font-size: 13px;
    color: var(--ss-gray-500);
    margin-top: 6px;
}

.settings-section .btn {
    margin-top: 8px;
}

/* Subscription Summary */
.subscription-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    margin-bottom: 16px;
}

.subscription-summary .current-plan {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-summary .plan-label {
    font-size: 12px;
    color: var(--ss-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscription-summary .plan-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ss-gray-800);
}

.subscription-summary .plan-price {
    font-size: 14px;
    color: var(--ss-gray-600);
    padding-left: 12px;
    border-left: 1px solid var(--ss-gray-300);
}

.subscription-summary .plan-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.subscription-summary .plan-status.warning {
    background: #fef3c7;
    color: #b45309;
}

@media (max-width: 600px) {
    .subscription-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .subscription-summary .current-plan {
        flex-wrap: wrap;
    }
}

/* Notification Options */
.notification-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.notification-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-option:hover {
    background: var(--ss-gray-100);
}

.notification-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--ss-primary);
}

.notification-option .option-content strong {
    display: block;
    font-size: 14px;
    color: var(--ss-gray-800);
    margin-bottom: 2px;
}

.notification-option .option-content span {
    font-size: 13px;
    color: var(--ss-gray-500);
}

/* Danger Zone */
.settings-section.danger-zone {
    border: 2px solid #fee2e2;
}

.settings-section.danger-zone h2 {
    color: #dc2626;
    border-bottom-color: #fee2e2;
}

/* Locked Fields */
.locked-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--ss-gray-100);
    padding: 14px 16px;
    border-radius: var(--ss-radius);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--ss-gray-600);
}

.locked-notice span {
    font-size: 16px;
}

.locked-notice p {
    margin: 0;
}

.locked-notice a {
    color: var(--ss-primary);
    font-weight: 500;
}

.locked-field {
    background: var(--ss-gray-50);
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ss-gray-600);
    min-height: 20px;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.danger-info strong {
    display: block;
    color: var(--ss-gray-800);
    margin-bottom: 4px;
}

.danger-info p {
    font-size: 14px;
    color: var(--ss-gray-500);
    margin: 0;
}

.btn-danger {
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ss-radius);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

/* ============================================
   Payment Page
   ============================================ */

.shortstay-payment {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Responsive Settings */
@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .danger-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-danger {
        width: 100%;
    }
}

/* ============================================
   Calendar Page
   ============================================ */

.shortstay-calendar-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Calendar Property Selector Tabs */
.calendar-property-selector {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: var(--ss-shadow);
}

.selector-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.selector-tab {
    padding: 10px 16px;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-600);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.selector-tab:hover {
    background: var(--ss-gray-100);
    color: var(--ss-gray-800);
}

.selector-tab.active {
    background: var(--ss-gradient);
    color: white;
}

/* Overview Stats (All Properties View) */
.overview-stats {
    display: flex;
    gap: 20px;
}

.overview-stat {
    text-align: center;
    flex: 1;
    padding: 16px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
}

.overview-stat .stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--ss-gray-800);
}

.overview-stat .stat-label {
    font-size: 13px;
    color: var(--ss-gray-500);
}

/* Booking Count (All Properties View) */
.calendar-day.has-bookings {
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.15) 0%, rgba(255, 126, 153, 0.15) 100%);
}

.booking-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: var(--ss-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Hint */
.action-hint {
    text-align: center;
    color: var(--ss-gray-500);
    font-size: 14px;
    padding: 12px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    margin: 0;
}

/* Calendar Actions - Better Styling */
.calendar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--ss-gray-200);
    margin-top: 20px;
}

.calendar-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ss-radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.calendar-actions .btn-secondary {
    background: var(--ss-gray-100);
    border: 2px solid var(--ss-gray-200);
    color: var(--ss-gray-700);
}

.calendar-actions .btn-secondary:hover {
    background: var(--ss-gray-200);
    border-color: var(--ss-gray-300);
}

.property-selector {
    background: white;
    border-radius: var(--ss-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--ss-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.property-selector label {
    font-weight: 600;
    color: var(--ss-gray-700);
}

.property-selector select {
    flex: 1;
    max-width: 400px;
    padding: 10px 14px;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 15px;
    cursor: pointer;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

/* Main Calendar */
.calendar-main {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 28px;
    box-shadow: var(--ss-shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0;
}

.btn-nav {
    background: var(--ss-gray-100);
    border: none;
    padding: 10px 16px;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--ss-gray-200);
    color: var(--ss-gray-800);
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ss-gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available {
    background: #d1fae5;
    border: 1px solid #059669;
}

.legend-dot.booked-direct {
    background: var(--ss-primary);
}

.legend-dot.booked-external {
    background: #3b82f6;
}

.legend-dot.blocked {
    background: #9ca3af;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 24px;
}

.calendar-day-header {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ss-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 70px;
    padding: 8px;
    border-radius: var(--ss-radius);
    position: relative;
    cursor: pointer;
    transition: all 0.15s;
    background: #f0fdf4;
    border: 2px solid transparent;
}

.calendar-day:hover:not(.empty):not(.past) {
    border-color: var(--ss-primary);
    transform: scale(1.02);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.past {
    background: var(--ss-gray-50);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.today {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 2px rgba(140, 104, 218, 0.2);
}

.calendar-day.available {
    background: #f0fdf4;
}

.calendar-day.booked {
    cursor: default;
}

.calendar-day.booked-direct {
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.2) 0%, rgba(255, 126, 153, 0.2) 100%);
}

.calendar-day.booked-external {
    background: rgba(59, 130, 246, 0.15);
}

.calendar-day.blocked {
    background: var(--ss-gray-100);
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-gray-700);
}

.calendar-day.past .day-number {
    color: var(--ss-gray-400);
}

.booking-indicator,
.blocked-indicator {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 4px;
    border-radius: 2px;
}

.calendar-day.booked-direct .booking-indicator {
    background: var(--ss-gradient);
}

.calendar-day.booked-external .booking-indicator {
    background: #3b82f6;
}

.blocked-indicator {
    background: #9ca3af;
}

/* Source-specific colors */
.calendar-day.source-airbnb {
    background: rgba(255, 90, 95, 0.15);
}
.calendar-day.source-airbnb .booking-indicator {
    background: #FF5A5F;
}

.calendar-day.source-booking_com {
    background: rgba(0, 53, 128, 0.1);
}
.calendar-day.source-booking_com .booking-indicator {
    background: #003580;
}

.calendar-day.source-vrbo {
    background: rgba(61, 103, 255, 0.1);
}
.calendar-day.source-vrbo .booking-indicator {
    background: #3D67FF;
}

.calendar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Calendar Sidebar */
.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0 0 12px 0;
}

.sidebar-card > p {
    font-size: 14px;
    color: var(--ss-gray-500);
    margin: 0 0 16px 0;
}

/* iCal URL Box */
.ical-url-box {
    display: flex;
    gap: 8px;
}

.ical-url-box input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 12px;
    color: var(--ss-gray-600);
    background: var(--ss-gray-50);
}

.btn-copy {
    padding: 10px 14px;
    background: var(--ss-primary);
    color: white;
    border: none;
    border-radius: var(--ss-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--ss-primary-dark);
}

/* External Calendars */
.external-calendars-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.external-calendar-item {
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.external-calendar-item.enabled {
    border-color: var(--ss-primary);
}

.calendar-platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-platform-header:hover {
    background: var(--ss-gray-50);
}

.platform-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.platform-toggle input[type="checkbox"] {
    display: none;
}

.platform-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.platform-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-700);
}

.sync-status {
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

.platform-url-input {
    padding: 0 14px 14px;
}

.platform-url-input input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 13px;
    margin-bottom: 8px;
}

.platform-url-input input:focus {
    outline: none;
    border-color: var(--ss-primary);
}

.help-link {
    font-size: 12px;
    color: var(--ss-primary);
}

.last-sync-time {
    display: block;
    font-size: 11px;
    color: var(--ss-gray-400);
    margin-top: 6px;
}

/* Upcoming Bookings */
.no-bookings {
    color: var(--ss-gray-400);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.upcoming-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-booking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
}

.booking-dates-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ss-gray-800);
}

.booking-dates-mini .arrow {
    color: var(--ss-gray-400);
}

.booking-guest-mini {
    flex: 1;
    font-size: 13px;
    color: var(--ss-gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-guest-mini .property-mini {
    display: block;
    font-size: 11px;
    color: var(--ss-gray-400);
    margin-top: 2px;
}

.booking-source-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--ss-gray-200);
    color: var(--ss-gray-600);
}

.booking-source-badge.source-direct {
    background: var(--ss-primary);
    color: white;
}

.booking-source-badge.source-airbnb {
    background: #FF5A5F;
    color: white;
}

.booking-source-badge.source-booking_com {
    background: #003580;
    color: white;
}

.booking-source-badge.source-vrbo {
    background: #3D67FF;
    color: white;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--ss-radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ss-gray-200);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ss-gray-800);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ss-gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--ss-gray-600);
}

.modal-body {
    padding: 24px;
}

.modal-note {
    background: var(--ss-gray-50);
    padding: 12px 16px;
    border-radius: var(--ss-radius);
    font-size: 14px;
    color: var(--ss-gray-600);
    margin-bottom: 20px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-gray-700);
    margin-bottom: 6px;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 14px;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: var(--ss-primary);
}

.modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--ss-gray-200);
    background: var(--ss-gray-50);
}

/* Responsive Calendar */
@media (max-width: 1200px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    
    .calendar-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 300px;
    }
}

/* Platforms Checklist (Add Property) */
.platforms-checklist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Property Count Bar */
.property-count-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--ss-shadow);
}

.count-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.count-info .btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.count-text {
    font-size: 15px;
    color: var(--ss-gray-600);
}

.count-text strong {
    color: var(--ss-gray-800);
}

.count-bar {
    width: 120px;
    height: 8px;
    background: var(--ss-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.count-bar-fill {
    height: 100%;
    background: var(--ss-gradient);
    border-radius: 4px;
    transition: width 0.3s;
}

.upgrade-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.upgrade-link:hover {
    opacity: 0.8;
}

/* Toggle Switch */
/* Toggle Switch - Simple approach */
.toggle-switch {
    display: block;
    cursor: pointer;
    padding: 16px 20px;
    background: var(--ss-gray-50);
    border-radius: 10px;
    border: 2px solid var(--ss-gray-200);
    margin-top: 4px;
    transition: all 0.2s;
}

.toggle-switch:hover {
    background: var(--ss-gray-100);
    border-color: var(--ss-gray-300);
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    display: inline-block;
    vertical-align: middle;
    width: 52px;
    height: 28px;
    background: #cbd5e1;
    border-radius: 14px;
    position: relative;
    transition: background 0.2s;
    margin-right: 12px;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #8c68da;
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(24px);
}

.toggle-label {
    display: inline;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
}

/* Form group with toggle */
.form-group:has(.toggle-switch) > label:first-child {
    margin-bottom: 8px;
    display: block;
}

.platform-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.platform-check:hover {
    background: var(--ss-gray-100);
}

.platform-check:has(input:checked) {
    background: rgba(140, 104, 218, 0.1);
    border-color: var(--ss-primary);
}

.platform-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ss-primary);
}

.platform-icon-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.platform-check span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-700);
}

.section-description {
    color: var(--ss-gray-500);
    font-size: 14px;
    margin: -8px 0 20px 0;
}

@media (max-width: 900px) {
    .platforms-checklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .platforms-checklist {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calendar-day {
        min-height: 50px;
        padding: 6px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 8px;
    }
    
    .calendar-actions {
        flex-direction: column;
    }
    
    .calendar-actions .btn {
        width: 100%;
    }
    
    .sidebar-card {
        min-width: 100%;
    }
    
    .modal-body .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-notice-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-view-live {
        width: 100%;
        justify-content: center;
    }
}

/* Page header button sizing */
.page-header .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   Payment Page Styles
   ============================================ */
.shortstay-payment {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 24px;
}

.payment-header h1 {
    font-size: 32px;
    color: var(--ss-gray-800);
    margin: 0 0 8px 0;
}

.payment-header p {
    color: var(--ss-gray-500);
    font-size: 16px;
    margin: 0;
}

/* Subscription Details Card */
.subscription-details {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.subscription-details h2 {
    font-size: 18px;
    color: var(--ss-gray-800);
    margin: 0 0 16px 0;
    font-weight: 600;
}

.subscription-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.subscription-info {
    flex: 1;
    min-width: 200px;
}

.subscription-info .package-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.subscription-info .package-price {
    font-size: 18px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 16px;
}

.subscription-info .package-savings {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}

.subscription-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.meta-label {
    color: #6b7280;
    min-width: 100px;
}

.meta-value {
    color: #1f2937;
    font-weight: 500;
}

.meta-value.status-active {
    color: #10b981;
}

.meta-value.status-cancelling {
    color: #f59e0b;
}

.meta-item.cancellation-notice {
    background: #fffbeb;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.subscription-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.btn-change-package {
    background: var(--ss-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-change-package:hover {
    background: var(--ss-primary-dark);
    color: white;
}

.btn-cancel {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #fef2f2;
}

.btn-reactivate {
    background: transparent;
    color: #10b981;
    border: 1px solid #10b981;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reactivate:hover {
    background: #f0fdf4;
}

/* Billing Switch Section */
.billing-switch-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.billing-switch-section h2 {
    font-size: 20px;
    color: var(--ss-gray-800);
    margin: 0 0 20px 0;
}

.annual-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.offer-details {
    flex: 1;
}

.offer-details p {
    font-size: 15px;
    color: var(--ss-gray-700);
    margin: 0 0 8px 0;
}

.savings-highlight {
    display: inline-block;
    background: var(--ss-success);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
}

.billing-switch-section .btn-primary {
    white-space: nowrap;
}

/* Upgrade Section */
.upgrade-section {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
    margin-bottom: 24px;
    margin-top: 30px;
}

.upgrade-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
}

.upgrade-section > p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0 0 16px 0;
}

.package-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .package-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .package-options {
        grid-template-columns: 1fr;
    }
}

.package-option {
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.package-option:hover:not(.current) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.package-option.current {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.package-option.featured {
    border-color: #a78bfa;
}

.package-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ss-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.package-option-header {
    margin-bottom: 12px;
}

.package-option-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.package-option.current .package-option-header h3 {
    color: #1f2937;
}

.current-badge {
    display: inline-block;
    background: #a855f7;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.package-option-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--ss-gray-800);
    margin-bottom: 4px;
    line-height: 1.2;
}

.package-option-price .price-period {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

.package-option.current .package-option-price {
    color: white;
}

.package-price-sub {
    font-size: 12px;
    color: var(--ss-gray-500);
    margin-bottom: 12px;
}

.package-option.current .package-price-sub {
    color: rgba(255,255,255,0.7);
}

.package-commission {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.package-commission.zero-commission {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.package-commission.has-commission {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.package-option.current .package-commission {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

ul.package-option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    flex: 1;
}

ul.package-option-features li {
    font-size: 13px;
    color: var(--ss-gray-600);
    padding: 6px 0;
    border-bottom: 1px solid var(--ss-gray-100);
    position: relative;
    padding-left: 24px;
}

ul.package-option-features li:last-child {
    border-bottom: none;
}

ul.package-option-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ss-success, #10b981);
    font-weight: 700;
}

.package-option.current ul.package-option-features li {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.1);
}

.package-option.current ul.package-option-features li::before {
    color: #a78bfa;
}

.btn-switch-package {
    background: var(--ss-primary);
    color: #ffffff !important;
    border: none;
    padding: 12px 20px;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: auto;
}

.btn-switch-package:hover {
    background: var(--ss-primary-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-downgrade-free {
    background: var(--ss-gray-200);
    color: var(--ss-gray-600) !important;
}

.btn-downgrade-free:hover {
    background: var(--ss-gray-300);
    color: var(--ss-gray-700) !important;
}

/* Payment Setup Form */
.payment-setup {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: start;
}

/* Package selector takes full width when shown */
.payment-setup > .package-selector-section {
    grid-column: 1 / -1;
}

/* Selected package display - left column */
.payment-setup > .selected-package-display {
    /* Stays in its grid position */
}

/* Payment form - right column */
.payment-setup > .payment-form-section {
    /* Stays in its grid position */
}

/* When package selector is shown, payment form spans full width below */
.payment-setup > .package-selector-section ~ .payment-form-section {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .payment-setup {
        grid-template-columns: 1fr;
    }
    
    .payment-setup > .package-selector-section,
    .payment-setup > .selected-package-display,
    .payment-setup > .payment-form-section {
        grid-column: auto;
    }
}

.payment-form-section h2 {
    font-size: 18px;
    color: var(--ss-gray-800);
    margin: 0 0 16px 0;
}

.selected-package-display {
    display: flex;
    flex-direction: column;
}

.package-highlight {
    background: var(--ss-gradient);
    color: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.package-highlight .package-highlight-header {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    margin-bottom: 12px;
    font-weight: 600;
}

.package-highlight .package-change-info {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.package-highlight .package-change-info strong {
    color: white;
    font-weight: 600;
}

.package-highlight .package-name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.package-highlight .package-price {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.package-highlight .package-price span {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
}

.annual-savings {
    margin-top: 16px;
}

.savings-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 4px;
}

.equivalent {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

.btn-change-package-link {
    margin-top: 16px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: var(--ss-radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-change-package-link:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.payment-form-section {
    background: white;
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    box-shadow: var(--ss-shadow);
}

.payment-form-section > h2 {
    margin-bottom: 4px;
}

.payment-form-section > p {
    color: var(--ss-gray-500);
    font-size: 14px;
    margin: 0 0 24px 0;
}

/* Two column layout for payment form on desktop */
.payment-form-section form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px 20px;
}

.payment-form-section .discount-code-section {
    grid-column: 1;
    grid-row: 1;
}

.payment-form-section .card-input-section {
    grid-column: 2;
    grid-row: 1;
}

.payment-form-section .payment-summary {
    grid-column: 1 / -1;
    align-self: start;
}

/* Ensure stripe card wrapper fills available height */
.card-input-section .stripe-card-wrapper {
    display: flex;
    flex-direction: column;
}

.card-input-section .stripe-card-wrapper .stripe-card-element {
    flex: 1;
    min-height: 44px;
}

.payment-form-section #submit-payment {
    grid-column: 1 / -1;
}

.payment-form-section .terms-text {
    grid-column: 1 / -1;
}

.payment-form-section .payment-security-info {
    grid-column: 1 / -1;
}

.payment-form-section .stripe-badge {
    grid-column: 1 / -1;
}

.payment-form-section input[type="hidden"] {
    grid-column: 1 / -1;
    display: none;
}

@media (max-width: 700px) {
    .payment-form-section form {
        grid-template-columns: 1fr;
    }
    
    .payment-form-section .discount-code-section,
    .payment-form-section .card-input-section,
    .payment-form-section .payment-summary,
    .payment-form-section #submit-payment,
    .payment-form-section .terms-text,
    .payment-form-section .payment-security-info,
    .payment-form-section .stripe-badge {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Mobile: fix selected package scroll-behind bug */
@media (max-width: 900px) {
    .payment-setup.change-mode-layout .selected-package-display,
    .selected-package-display {
        position: static !important;
        top: auto !important;
    }
}

/* Discount Code Section */
.discount-code-section {
    margin-bottom: 0;
}

/* Override glass-card styles inherited from theme */
.payment-form-section .discount-code-section {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.discount-code-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-700);
    margin-bottom: 8px;
}

.discount-input-group {
    display: flex;
    gap: 8px;
}

.discount-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ss-gray-300);
    border-radius: var(--ss-radius);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.discount-input-group input:focus {
    outline: none;
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-apply-discount {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-apply-discount:hover {
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.btn-apply-discount:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-message.success {
    color: var(--ss-success);
}

.discount-message.error {
    color: var(--ss-danger);
}

.btn-remove-discount {
    background: none;
    border: 1px solid #dc2626;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-discount:hover {
    background: #dc2626;
    color: white;
}

/* Card Input Section */
.card-input-section {
    margin-bottom: 0;
}

.card-input-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-gray-700);
    margin-bottom: 8px;
}

.stripe-card-element {
    padding: 14px 16px;
    border: 1px solid var(--ss-gray-300);
    border-radius: var(--ss-radius);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stripe-card-element:focus-within {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Card wrapper with icons */
.stripe-card-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stripe-card-wrapper:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.stripe-card-wrapper .card-icons {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.stripe-card-wrapper .stripe-card-element {
    border: none;
    border-radius: 0;
    padding: 14px;
}

.stripe-card-wrapper .stripe-card-element:focus-within {
    box-shadow: none;
}

/* Submit button - professional style */
.btn-submit-payment {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    margin-top: 4px;
}

.btn-submit-payment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-submit-payment:active {
    transform: translateY(0);
}

.btn-submit-payment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Security info */
.payment-security-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
    padding-top: 8px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.security-item svg {
    color: #10b981;
}

/* Stripe badge */
.stripe-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.stripe-badge span {
    font-size: 12px;
    color: #9ca3af;
}

/* Payment form section improvements */
.payment-form-section {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.payment-form-section h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1f2937;
}

.payment-form-section > p {
    color: #6b7280;
    margin: 0 0 24px 0;
    font-size: 14px;
}

.card-errors {
    color: var(--ss-danger);
    font-size: 13px;
    min-height: 20px;
    margin-top: 8px;
}

/* Payment Summary */
.payment-summary {
    background: var(--ss-gray-50);
    border-radius: var(--ss-radius);
    padding: 20px;
}

.payment-summary-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-gray-700);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ss-gray-200);
}

/* Order Summary Card (under package box) */
.order-summary-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.order-summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.order-summary-row span {
    color: #6b7280;
}

.order-summary-row strong {
    color: #1f2937;
}

.order-summary-row.savings strong {
    color: #10b981;
}

.order-summary-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 16px;
}

.order-summary-row.total strong {
    font-size: 20px;
    color: #1f2937 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-clip: unset !important;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.summary-row span {
    color: var(--ss-gray-500);
}

.summary-row strong {
    color: var(--ss-gray-800);
}

.summary-row.savings strong,
.text-green {
    color: var(--ss-success) !important;
}

.summary-row.discount-row strong {
    color: var(--ss-success);
}

.summary-row.total {
    border-top: 2px solid var(--ss-gray-200);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 18px;
}

.summary-row.total strong {
    font-size: 20px;
}

/* Payment Info */
.payment-info {
    margin-top: 24px;
    font-size: 13px;
    color: var(--ss-gray-500);
}

.payment-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Test Mode Notice */
.test-mode-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--ss-radius);
    padding: 20px;
    margin-top: 32px;
    font-size: 14px;
    color: #92400e;
}

.test-mode-notice strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.test-mode-notice p {
    margin: 6px 0;
}

.test-mode-notice code {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .subscription-card {
        flex-direction: column;
    }
    
    .subscription-actions {
        width: 100%;
        flex-direction: row;
    }
    
    .subscription-actions button,
    .subscription-actions a {
        flex: 1;
    }
    
    .annual-offer {
        flex-direction: column;
        text-align: center;
    }
    
    .billing-switch-section .btn-primary {
        width: 100%;
    }
    
    .package-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-container {
        padding: 24px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .account-sections {
        grid-template-columns: 1fr;
    }
    
    .subscription-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .payment-header h1 {
        font-size: 26px;
    }
    
    .package-highlight .package-price {
        font-size: 36px;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
}
/* ==========================================================================
   Dashboard Analytics Section
   ========================================================================== */

.dashboard-analytics {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.analytics-header .section-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.analytics-header .section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.analytics-period-select {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.analytics-period-select:hover {
    border-color: #7c3aed;
}

.analytics-period-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-stat {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.analytics-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    transition: opacity 0.2s;
}

.analytics-stat-value.loading {
    opacity: 0.5;
}

.analytics-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Property Performance Table */
.analytics-properties h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.property-performance-table {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.performance-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.performance-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #1e293b;
    align-items: center;
    transition: background 0.15s;
}

.performance-row:last-child {
    border-bottom: none;
}

.performance-row:hover {
    background: #fafafa;
}

.performance-row .col-property {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.performance-row .col-revenue {
    font-weight: 600;
    color: #059669;
}

.occupancy-bar {
    position: relative;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.occupancy-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 12px;
    transition: width 0.3s ease;
}

.occupancy-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .analytics-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-stat-value {
        font-size: 20px;
    }
    
    .performance-header {
        display: none;
    }
    
    .performance-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }
    
    .performance-row .col-property {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .performance-row .col-revenue,
    .performance-row .col-bookings,
    .performance-row .col-nights {
        display: inline-block;
        margin-right: 16px;
    }
    
    .performance-row .col-revenue::before {
        content: 'Revenue: ';
        font-weight: 400;
        color: #64748b;
    }
    
    .performance-row .col-bookings::before {
        content: 'Bookings: ';
        font-weight: 400;
        color: #64748b;
    }
    
    .performance-row .col-nights::before {
        content: 'Nights: ';
        font-weight: 400;
        color: #64748b;
    }
    
    .performance-row .col-occupancy {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .analytics-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .analytics-period-select {
        width: 100%;
    }
}
/* ============================================
   Settings Page — Masonry Layout
   ============================================ */

.settings-grid {
    display: block !important;
    column-count: 2;
    column-gap: 24px;
}

.settings-grid > .settings-section,
.settings-grid > .billing-history-wrapper {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}

@media (max-width: 1024px) {
    .settings-grid {
        column-count: 1;
    }
}