/* Notes Popup Styles */
.notes-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notes-popup.show {
    display: flex;
    opacity: 1;
}

.notes-popup-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.notes-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--line-soft);
}

.notes-popup-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.close-popup-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.close-popup-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.notes-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.notes-popup-footer {
    padding: 1rem;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notes-popup-footer .notes-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: transparent;
    border: none;
    margin-bottom: 0;
}

:root {
    --accent-primary: #ff4757;
    --accent-secondary: #ee5a6f;
    --accent-soft: rgba(255, 71, 87, 0.15);
}

[data-theme="dark"] {
    --bg-main: #121212;
    --bg-layer: #1e1e1e;
    --bg-surface: rgba(45, 45, 45, 0.92);
    --bg-chip: rgba(60, 60, 60, 0.7);
    --text-main: #ffffff;
    --text-subtle: #c7c7c7;
    --line-soft: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shine: rgba(255, 255, 255, 0.15);
    --shadow-main: rgba(0, 0, 0, 0.4);
    --shadow-soft: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
    --bg-main: #f0f4f8;
    --bg-layer: #e3eaf2;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-chip: rgba(255, 255, 255, 0.85);
    --text-main: #1a202c;
    --text-subtle: #4a5568;
    --line-soft: rgba(0, 0, 0, 0.12);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shine: rgba(255, 255, 255, 0.9);
    --shadow-main: rgba(99, 179, 237, 0.15);
    --shadow-soft: rgba(99, 179, 237, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-main: #121212;
        --bg-layer: #1e1e1e;
        --bg-surface: rgba(45, 45, 45, 0.92);
        --bg-chip: rgba(60, 60, 60, 0.7);
        --text-main: #ffffff;
        --text-subtle: #c7c7c7;
        --line-soft: rgba(255, 255, 255, 0.15);
        --glass-border: rgba(255, 255, 255, 0.25);
        --glass-shine: rgba(255, 255, 255, 0.15);
        --shadow-main: rgba(0, 0, 0, 0.4);
        --shadow-soft: rgba(0, 0, 0, 0.2);
    }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-main: #f0f4f8;
        --bg-layer: #e3eaf2;
        --bg-surface: rgba(255, 255, 255, 0.95);
        --bg-chip: rgba(255, 255, 255, 0.85);
        --text-main: #1a202c;
        --text-subtle: #4a5568;
        --line-soft: rgba(0, 0, 0, 0.12);
        --glass-border: rgba(255, 255, 255, 0.6);
        --glass-shine: rgba(255, 255, 255, 0.9);
        --shadow-main: rgba(99, 179, 237, 0.15);
        --shadow-soft: rgba(99, 179, 237, 0.08);
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.2s ease, color 0.2s ease;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
}

.min-h-screen { min-height: 100vh; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.-z-20 { z-index: -20; }
.-z-10 { z-index: -10; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-7 { margin-top: 1.75rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-tight { line-height: 1.25; }
.flex { display: flex; }
.grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:pt-16 { padding-top: 4rem; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:pb-16 { padding-bottom: 4rem; }
    .md\:mb-10 { margin-bottom: 2.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:gap-4 { gap: 1rem; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:items-start { align-items: flex-start; }
    .md\:grid-cols-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.comfort-bg {
    background: linear-gradient(145deg, var(--bg-main), var(--bg-layer));
    will-change: auto;
}

[data-theme="light"] .comfort-bg {
    background: 
        radial-gradient(circle at 80% 15%, rgba(255, 107, 107, 0.12), transparent 45%),
        radial-gradient(circle at 20% 10%, rgba(99, 179, 237, 0.15), transparent 40%),
        linear-gradient(135deg, #f0f4f8 0%, #e3eaf2 100%);
}

.ambient-layer {
    background: repeating-linear-gradient(135deg, transparent 0px, transparent 39px, var(--line-soft) 39px, var(--line-soft) 40px);
    opacity: 0.3;
    pointer-events: none;
}

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.96), rgba(30, 30, 30, 0.94));
    opacity: 1;
    visibility: visible;
    transition: opacity 0.36s ease, visibility 0.36s ease;
    will-change: opacity;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-screen.fade-out .splash-card {
    animation: splashExit 0.36s ease forwards;
}

@keyframes splashExit {
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

.splash-card {
    animation: splashEnter 0.6s ease both;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

@keyframes splashEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

.splash-logo-container {
    margin-bottom: 2rem;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.7), rgba(50, 50, 50, 0.6));
}

.splash-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-photo-container {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 340px;
    height: 180px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.6), rgba(50, 50, 50, 0.5));
}

.splash-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-card h1 {
    margin: 0.4rem 0 0;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
}

.splash-short-title {
    margin: 0;
    color: #c7c7c7;
    font-size: 0.95rem;
    line-height: 1.4;
}

.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px var(--shadow-main);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
    opacity: 0.5;
}

.hero-panel {
    position: relative;
    overflow: hidden;
}

.kicker {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
}

.accent {
    color: var(--accent-primary);
}

.hero-copy {
    color: var(--text-subtle);
    line-height: 1.7;
}

.pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-copy {
    color: var(--text-subtle);
    line-height: 1.6;
}

.chip {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.chip:hover {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.chip.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.layout-grid {
    display: block;
}

#categoryFilters::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.chip {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
    position: relative;
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: 420px;
    animation: fadeUpItem 0.4s ease forwards;
}

@keyframes fadeUpItem {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-main);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-layer);
    display: block;
}

.menu-item-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.menu-item-name {
    font-size: clamp(0.85rem, 3vw, 1.125rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    flex: 1;
    word-break: keep-all; 
    overflow-wrap: break-word;
    line-height: 1.4;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-price-badge {
    background: rgba(255, 71, 87, 0.1); /* Slight accent background */
    border: 1px solid rgba(255, 71, 87, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.menu-item-price {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    font-weight: 800;
    color: var(--accent-primary);
    white-space: nowrap;
}

.menu-item-description {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: var(--text-subtle);
    margin: 0 0 1rem 0;
    line-height: 1.6;
    min-height: 3.2em; /* 2 lines exactly */
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add-btn.modern-btn {
    margin: auto 0.75rem 0.75rem 0.75rem;
    padding: 0.75rem;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    width: calc(100% - 1.5rem);
    display: block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.25);
}

.add-btn.modern-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.35);
}

.add-btn.modern-btn:active {
    transform: translateY(0);
}

.menu-item.added-feedback {
    animation: cardPulse 0.6s ease;
}

@keyframes cardPulse {
    50% {
        transform: scale(1.02);
    }
}

.notes-panel {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

.notes-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.notes-subtitle {
    font-size: 0.875rem;
    color: var(--text-subtle);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.notes-empty {
    text-align: center;
    color: var(--text-subtle);
    font-size: 0.875rem;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.note-item {
    padding: 1rem;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.note-item:hover {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
}

.note-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note-head span:last-child {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 700;
}

.note-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border-radius: 0.5rem;
    padding: 0.25rem;
    border: 1px solid var(--line-soft);
}

.qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 0.375rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.qty-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.remove-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-subtle);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.remove-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.notes-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.notes-summary strong {
    color: var(--accent-primary);
    font-weight: 700;
}

.notes-summary.takeout-fee {
    color: var(--text-subtle);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: var(--accent-soft);
    border-color: var(--accent-primary);
}

.notes-summary.takeout-fee strong {
    color: var(--accent-primary);
}

.notes-summary.total-row {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    font-size: 1.25rem;
    padding: 1.25rem;
}

.notes-summary.total-row strong {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

@media (max-width: 480px) {
    .notes-popup-content {
        max-height: 90vh;
        border-radius: 1.25rem 1.25rem 0 0;
    }
    
    .notes-popup-header {
        padding: 1rem;
    }
    
    .notes-popup-header h2 {
        font-size: 1.25rem;
    }
    
    .notes-popup-body {
        padding: 1rem;
        padding-bottom: 12rem;
    }
    
    .notes-popup-footer {
        padding: 0.75rem;
        gap: 0.5rem;
        position: sticky;
        bottom: 0;
        background: var(--bg-surface);
        border-top: 1px solid var(--line-soft);
        z-index: 10;
    }
    
    .notes-popup-footer .notes-summary {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
    }
    
    .notes-summary.takeout-fee {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .notes-summary.total-row {
        font-size: 1rem;
        padding: 0.625rem 0.75rem;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        border: none;
        border-radius: 0.5rem;
        color: white;
    }
    
    .notes-summary.total-row strong {
        font-size: 1.125rem;
        font-weight: 800;
        color: white;
    }
    
    .notes-summary.total-row span {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 600;
    }
    
    .clear-notes-btn {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .note-item {
        padding: 0.875rem;
    }
    
    .note-head {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
    }
    
    .note-head span:last-child {
        font-size: 0.9375rem;
    }
    
    .note-controls .qty-controls span {
        font-size: 1rem;
        min-width: 1.5rem;
        text-align: center;
    }
    
    .remove-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .notes-panel .notes-summary {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .notes-panel .notes-summary.total-row {
        font-size: 1.25rem;
        padding: 1rem;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        border: none;
        border-radius: 0.75rem;
        color: white;
    }
    
    .notes-panel .notes-summary.total-row strong {
        font-size: 1.5rem;
        color: white;
    }
    
    .notes-panel .notes-summary.total-row span {
        color: rgba(255, 255, 255, 0.9);
    }
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.notes-summary.total-row strong.price-updated {
    animation: pricePulse 0.3s ease;
}

.notes-popup-content {
    transition: max-height 0.3s ease;
}

.clear-notes-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-subtle);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.clear-notes-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.floating-notes-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 40;
}

.floating-notes-btn:hover {
    transform: scale(1.1);
}

.floating-call-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 40;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    background: #059669;
}

.notes-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.25rem;
    height: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0 0.375rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-chip);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}

.theme-toggle:hover {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 1rem;
    height: 1rem;
}

.footer-copy {
    color: var(--text-subtle);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-mark {
    color: var(--text-main);
    font-weight: 600;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-item-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-item-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    opacity: 0.7;
}

.added-toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px var(--shadow-main);
    backdrop-filter: blur(16px);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.added-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-item .footer-copy,
.footer-item .footer-mark {
    white-space: nowrap;
}

.footer-phone {
    color: var(--text-main);
    transition: color 0.15s ease;
}

.footer-phone:hover {
    color: var(--accent-primary);
}

@media (max-width: 639px) {
    .footer-item .footer-copy,
    .footer-item .footer-mark {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .notes-panel {
        position: static;
        max-height: none;
    }
}
