/* ═══════════════════════════════════════════════════════
   BookingBreb — Owner Dashboard Styles
   ═══════════════════════════════════════════════════════ */

/* ─── Dashboard Layout ─── */
.dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 6000;
    overflow: hidden;
    display: none;
}

.dashboard.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dashboard-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.dashboard-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header .logo-text {
    color: var(--color-primary);
}

.dashboard-badge {
    padding: 4px 12px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 15px;
}

.user-email {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ─── Dashboard Body ─── */
.dashboard-body {
    display: flex;
    height: calc(100vh - 65px);
}

.dashboard-sidebar {
    width: 240px;
    background: var(--color-white);
    border-right: 1px solid var(--color-border);
    padding: 24px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.dash-nav-item:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.dash-nav-item.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.dash-nav-item span:first-child {
    font-size: 18px;
}

/* ─── Dashboard Main ─── */
.dashboard-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.dash-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dash-panel.active {
    display: block;
}

.dash-panel h2 {
    font-size: 28px;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
}

/* ─── Stats Cards ─── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dash-stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dash-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.dash-stat-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.dash-stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.dash-stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Dashboard Lists ─── */
.dash-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-empty {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.dash-booking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dash-booking-item:hover {
    box-shadow: var(--shadow-md);
}

.booking-guest-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-guest-name {
    font-weight: 600;
    color: var(--color-text);
}

.booking-guest-email {
    font-size: 13px;
    color: var(--color-text-muted);
}

.booking-dates {
    text-align: center;
}

.booking-dates-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-dates-value {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.booking-status {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.booking-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ─── Dashboard Listings Grid ─── */
.dash-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dash-listing-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dash-listing-card:hover {
    box-shadow: var(--shadow-md);
}

.dash-listing-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-alt);
    position: relative;
}

.dash-listing-content {
    padding: 16px;
}

.dash-listing-content h4 {
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.dash-listing-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.dash-listing-actions {
    display: flex;
    gap: 8px;
}

.dash-listing-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.btn-secondary {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

/* ─── Dashboard Form ─── */
.dash-form {
    max-width: 700px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amenity-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.amenity-check:hover {
    border-color: var(--color-primary);
}

.amenity-check input:checked + span {
    color: var(--color-primary);
    font-weight: 600;
}

.amenity-check:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(45, 80, 22, 0.05);
}

/* Photo Upload */
.photo-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.photo-upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(45, 80, 22, 0.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 8px;
    display: block;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.photo-preview {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-error);
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Dashboard Recent ─── */
.dash-recent h3 {
    font-size: 20px;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

/* ─── Responsive Dashboard ─── */
@media (max-width: 1024px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dash-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header-content {
        padding: 0 16px;
    }

    .dashboard-body {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 12px 0;
    }
    
    .dash-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 0 16px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .dash-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .dash-nav-item {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 14px;
    }

    .dash-nav-item span:first-child {
        font-size: 18px;
    }
    
    .dashboard-main {
        padding: 20px 16px;
    }

    .dash-panel h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .dash-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dash-stat-card {
        padding: 16px;
    }

    .dash-stat-icon {
        font-size: 28px;
    }

    .dash-stat-value {
        font-size: 24px;
    }

    .dash-stat-label {
        font-size: 12px;
    }
    
    .dash-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .dashboard-user {
        gap: 8px;
    }

    .dashboard-user .user-name {
        font-size: 14px;
    }

    .dashboard-user .user-email {
        display: none;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .amenity-check {
        font-size: 13px;
        padding: 10px;
    }

    .auth-tabs {
        gap: 8px;
    }

    .auth-tab {
        font-size: 14px;
        padding: 12px;
    }

    .modal-auth {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 10px 0;
    }

    .dashboard-header-content {
        padding: 0 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo {
        flex: 1;
        min-width: 150px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .dashboard-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .dashboard-user {
        flex-direction: row;
        gap: 6px;
        justify-content: flex-end;
        flex: 1;
    }

    .dashboard-user .user-name {
        display: none;
    }

    .dashboard-user .btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    #closeDashboard {
        padding: 6px 10px;
        font-size: 18px;
    }

    .dash-nav {
        padding: 0 12px;
        gap: 6px;
    }

    .dash-nav-item {
        padding: 8px 12px;
        font-size: 13px;
        min-width: auto;
    }

    .dash-nav-item span:first-child {
        font-size: 16px;
        margin-right: 4px;
    }

    .dashboard-main {
        padding: 16px 12px;
    }

    .dash-panel h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .dash-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dash-stat-card {
        padding: 14px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .dash-stat-icon {
        font-size: 32px;
        margin-bottom: 0;
    }

    .dash-stat-value {
        font-size: 28px;
    }

    .dash-stat-label {
        font-size: 11px;
    }

    .dash-form {
        padding: 0;
    }

    .form-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .form-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .amenity-check {
        font-size: 14px;
        padding: 12px;
    }

    .photo-upload-area {
        padding: 30px 15px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .upload-placeholder p {
        font-size: 14px;
    }

    .upload-placeholder small {
        font-size: 12px;
    }

    .photo-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .photo-preview-item {
        border-radius: 8px;
    }

    .dash-list {
        gap: 12px;
    }

    .dash-booking-card {
        padding: 14px;
    }

    .dash-booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dash-booking-id {
        font-size: 12px;
    }

    .dash-booking-status {
        font-size: 11px;
        padding: 4px 10px;
    }

    .dash-booking-details {
        gap: 12px;
    }

    .dash-booking-detail {
        font-size: 13px;
    }

    .dash-recent h3 {
        font-size: 20px;
    }

    .dash-empty {
        font-size: 14px;
        padding: 30px 15px;
    }

    .btn-full {
        width: 100%;
        min-height: 46px;
    }

    .form-hint {
        font-size: 12px;
    }

    .auth-header h3 {
        font-size: 20px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .auth-icon {
        font-size: 36px;
    }
}
/* ─── Listing Preview Modal ─── */
.listing-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.preview-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.preview-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.preview-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.preview-details {
    padding: 24px;
}

.preview-details h2 {
    margin: 0 0 12px 0;
    font-size: 1.8rem;
}

.preview-price {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.preview-desc {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.preview-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* ─── Mobile Responsive for New Form Elements ─── */
@media (max-width: 768px) {
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }

    .discount-grid {
        flex-direction: column;
    }

    .discount-item {
        width: 100%;
    }

    .photo-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-preview-item:first-child {
        grid-column: span 3;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-lg {
        flex: 1;
    }

    .price-calculator-box {
        padding: 16px;
    }

    .calc-row {
        flex-direction: column;
        align-items: stretch;
    }

    .calc-row span {
        min-width: auto;
        margin-bottom: 4px;
    }

    .photo-url-section .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr;
    }

    .photo-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-preview-item:first-child {
        grid-column: span 2;
    }

    .preview-content {
        width: 95%;
        border-radius: 16px;
    }

    .preview-img {
        height: 200px;
    }

    .preview-details {
        padding: 16px;
    }

    .preview-details h2 {
        font-size: 1.4rem;
    }
}

/* ─── Revenue Panel Styles ─── */
.revenue-period-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.period-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.period-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.revenue-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.revenue-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.revenue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.revenue-card-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border: none;
}

.revenue-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.revenue-value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 4px;
}

.revenue-label {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revenue-breakdown {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--color-border);
}

.revenue-breakdown h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--color-bg-light);
    border-radius: 12px;
}

.breakdown-item-name {
    font-weight: 600;
}

.breakdown-item-revenue {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.revenue-chart-placeholder {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--color-border);
}

.revenue-chart-placeholder h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 8px;
    padding: 0 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 8px 8px 0 0;
    min-height: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--color-text-muted);
}

.chart-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
}

/* ─── Calendar Panel Styles ─── */
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.calendar-month-label {
    font-size: 20px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #28a745;
}

.legend-dot.booked {
    background: #dc3545;
}

.legend-dot.blocked {
    background: #6c757d;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--color-text-muted);
    padding: 8px;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover {
    background: var(--color-bg-light);
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
}

.calendar-day.booked {
    background: #f8d7da;
    color: #721c24;
}

.calendar-day.blocked {
    background: #e2e3e5;
    color: #6c757d;
}

.calendar-day.today {
    border: 2px solid var(--color-primary);
    font-weight: 700;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-listing-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.calendar-listing-selector select {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
}

/* ─── Bookings Filters ─── */
.bookings-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bookings-filters .filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.bookings-filters .filter-btn:hover {
    border-color: var(--color-primary);
}

.bookings-filters .filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ─── Revenue & Calendar Mobile ─── */
@media (max-width: 768px) {
    .revenue-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .revenue-value {
        font-size: 22px;
    }

    .calendar-grid {
        padding: 12px;
    }

    .calendar-day {
        font-size: 12px;
    }

    .chart-bars {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .revenue-stats {
        grid-template-columns: 1fr;
    }

    .period-btn {
        flex: 1;
        text-align: center;
    }

    .calendar-controls {
        flex-wrap: wrap;
    }

    .calendar-month-label {
        order: -1;
        width: 100%;
        margin-bottom: 12px;
    }
}