/**
 * TopLog Catering - Super Simple Frontend
 * Child-friendly, colorful, easy to use
 */

/* ========== CSS VARIABLES ========== */
:root {
    --tlc-bg: #f8fafc;
    --tlc-white: #ffffff;
    --tlc-primary: #6366f1;
    --tlc-primary-dark: #4f46e5;
    --tlc-primary-rgb: 99, 102, 241;
    --tlc-primary-dark-rgb: 79, 70, 229;
    --tlc-success: #22c55e;
    --tlc-success-dark: #16a34a;
    --tlc-danger: #ef4444;
    --tlc-warning: #f59e0b;
    --tlc-gray-100: #f3f4f6;
    --tlc-gray-200: #e5e7eb;
    --tlc-gray-300: #d1d5db;
    --tlc-gray-400: #9ca3af;
    --tlc-gray-500: #6b7280;
    --tlc-gray-600: #4b5563;
    --tlc-gray-700: #374151;
    --tlc-gray-800: #1f2937;
    --tlc-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --tlc-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --tlc-radius: 16px;
    --tlc-radius-xl: 24px;
    --tlc-transition: all 0.3s ease;
    /* Brand colors — overridable from admin Appearance settings */
    --tlc-brand: #312e81;
    --tlc-brand-mid: #3730a3;
    --tlc-brand-card: #343388;
}

/* ========== RESET & BASE ========== */
.tlc-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--tlc-bg);
    min-height: 100vh;
    color: var(--tlc-gray-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

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

/* ========== WELCOME SCREEN (First Time Registration) ========== */
.tlc-welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--tlc-bg, #f3f4f6);
}

.tlc-welcome-card {
    width: 100%;
    max-width: 640px;
    background: var(--tlc-brand-card);
    border-radius: 24px;
    padding: 56px 48px 48px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tlc-welcome-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.tlc-welcome-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.tlc-welcome-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center !important;
    display: block !important;
}

/* ID-alapú felülírás a téma text-align override ellen */
#welcome-screen .tlc-welcome-text,
#welcome-screen p.tlc-welcome-text {
    text-align: center !important;
    display: block !important;
    width: 100%;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Code Input */
.tlc-code-form {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.tlc-code-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 5px 5px 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.tlc-code-input {
    flex: 1;
    border: none !important;
    padding: 16px 20px 16px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent !important;
    color: #1f2937;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 0;
    -webkit-appearance: none;
    border-radius: 0;
}

.tlc-code-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.tlc-code-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.tlc-btn-verify {
    width: 44px;
    height: 44px;
    border: 2px solid var(--tlc-brand-card);
    border-radius: 50%;
    background: transparent;
    color: var(--tlc-brand-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.tlc-btn-verify:hover {
    background: var(--tlc-brand-card);
    color: #ffffff;
    transform: scale(1.05);
}

.tlc-btn-verify:disabled {
    border-color: #9ca3af;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.tlc-code-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 14px;
    text-align: left;
    line-height: 1.5;
}

.tlc-code-input-wrapper.has-error {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.6), 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

.tlc-code-hint {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    margin-top: 48px;
    text-align: center !important;
    line-height: 1.5;
    display: block !important;
}

/* Partner Found Section */
.tlc-partner-found {
    margin-top: 32px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tlc-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.tlc-check {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ffffff;
}

.tlc-name-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.tlc-name-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.tlc-name-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 500;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.tlc-name-input:focus {
    outline: none;
    border-color: transparent;
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--tlc-brand-card);
}

.tlc-name-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 6px 0 0;
    line-height: 1.4;
}

.tlc-btn-start {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: var(--tlc-brand-card);
    color: #ffffff;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 15px -3px rgba(52, 51, 136, 0.3);
    font-family: inherit;
}

.tlc-btn-start:hover {
    background: #2c2b75;
    transform: scale(1.02);
}

/* ========== ORDER SCREEN ========== */
.tlc-order-screen {
    padding-bottom: 160px; /* Space for footer and nav */
}

/* Simple Header */
.tlc-simple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--tlc-white);
    border-bottom: 1px solid var(--tlc-gray-200);
}

.tlc-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tlc-gray-100);
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
}

.tlc-user-avatar {
    font-size: 1.5rem;
}

.tlc-user-name {
    font-weight: 600;
    color: var(--tlc-gray-800);
}

.tlc-child-select {
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    color: var(--tlc-gray-800);
    cursor: pointer;
    padding-right: 20px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.tlc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlc-btn-add-child {
    width: 40px;
    height: 40px;
    border: 2px dashed var(--tlc-gray-300);
    border-radius: 50%;
    background: transparent;
    color: var(--tlc-gray-500);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--tlc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tlc-btn-add-child:hover {
    border-color: var(--tlc-primary);
    color: var(--tlc-primary);
}

.tlc-btn-logout {
    color: var(--tlc-gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--tlc-transition);
}

.tlc-btn-logout:hover {
    background: var(--tlc-gray-100);
    color: var(--tlc-gray-700);
}

/* No Menu State */
.tlc-no-menu {
    text-align: center;
    padding: 80px 24px;
}

.tlc-no-menu-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.tlc-no-menu h2 {
    font-size: 1.5rem;
    color: var(--tlc-gray-700);
    margin-bottom: 8px;
}

.tlc-no-menu p {
    color: var(--tlc-gray-500);
}

/* Week Title */
.tlc-week-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px 16px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
}

.tlc-week-emoji {
    font-size: 1.6rem;
}

.tlc-week-dates {
    font-weight: 400;
    font-size: 1rem;
    color: var(--tlc-gray-500);
}

/* ========== DAY CARDS - THE MAIN FEATURE ========== */
.tlc-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.tlc-day-card {
    background: var(--tlc-white);
    border-radius: var(--tlc-radius-xl);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--tlc-transition);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: var(--tlc-shadow);
}

.tlc-day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--card-color, var(--tlc-primary));
}

.tlc-day-card:hover:not(.disabled) {
    transform: translateY(-4px);
    box-shadow: var(--tlc-shadow-lg);
}

.tlc-day-card.selected {
    border-color: var(--card-color, var(--tlc-primary));
    background: linear-gradient(180deg, rgba(var(--card-color), 0.05) 0%, var(--tlc-white) 100%);
}

.tlc-day-card.selected .tlc-day-check {
    opacity: 1;
    transform: scale(1);
}

.tlc-day-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tlc-day-card.disabled::before {
    background: var(--tlc-gray-300);
}

.tlc-day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tlc-day-emoji {
    font-size: 2rem;
}

.tlc-day-date {
    width: 32px;
    height: 32px;
    background: var(--tlc-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--tlc-gray-600);
}

.tlc-day-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
    margin-bottom: 8px;
}

.tlc-day-menu {
    font-size: 0.85rem;
    color: var(--tlc-gray-500);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tlc-day-menu.tlc-day-closed {
    color: var(--tlc-gray-400);
    font-style: italic;
}

.tlc-day-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--card-color, var(--tlc-primary));
}

.tlc-day-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--card-color, var(--tlc-success));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--tlc-transition);
}

.tlc-checkmark {
    color: var(--tlc-white);
    font-size: 1.1rem;
    font-weight: bold;
}

/* ========== ORDER FOOTER ========== */
.tlc-order-footer {
    position: fixed;
    bottom: 70px; /* Above nav */
    left: 0;
    right: 0;
    background: var(--tlc-white);
    padding: 16px 20px;
    border-top: 1px solid var(--tlc-gray-200);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
    animation: slideUp 0.3s ease;
}

.tlc-order-summary {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tlc-order-count {
    width: 32px;
    height: 32px;
    background: var(--tlc-primary);
    color: var(--tlc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tlc-order-label {
    color: var(--tlc-gray-500);
    font-size: 0.9rem;
}

.tlc-order-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--tlc-gray-800);
    margin-left: auto;
}

.tlc-btn-order {
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--tlc-success), var(--tlc-success-dark));
    color: var(--tlc-white);
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tlc-transition);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.tlc-btn-order:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.tlc-btn-order:disabled {
    background: var(--tlc-gray-400);
    box-shadow: none;
    cursor: not-allowed;
}

/* ========== BOTTOM NAVIGATION ========== */
.tlc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tlc-white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    border-top: 1px solid var(--tlc-gray-200);
    z-index: 101;
}

.tlc-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--tlc-gray-400);
    transition: var(--tlc-transition);
}

.tlc-nav-item.active {
    color: var(--tlc-primary);
}

.tlc-nav-item:hover {
    color: var(--tlc-primary);
}

.tlc-nav-icon {
    font-size: 1.5rem;
}

.tlc-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== PANELS (Orders, Info) ========== */
.tlc-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tlc-bg);
    z-index: 200;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.tlc-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--tlc-white);
    border-bottom: 1px solid var(--tlc-gray-200);
}

.tlc-back-btn {
    border: none;
    background: transparent;
    color: var(--tlc-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.tlc-panel-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
}

.tlc-panel-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

/* Info Panel */
.tlc-info-card {
    background: var(--tlc-white);
    border-radius: var(--tlc-radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--tlc-shadow);
}

.tlc-info-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.tlc-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
    margin-bottom: 8px;
}

.tlc-info-card p {
    color: var(--tlc-gray-500);
    font-size: 0.95rem;
}

.tlc-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--tlc-white);
    border-radius: var(--tlc-radius);
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--tlc-gray-800);
    transition: var(--tlc-transition);
    box-shadow: var(--tlc-shadow);
}

.tlc-info-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--tlc-shadow-lg);
}

.tlc-info-row-icon {
    font-size: 1.5rem;
}

/* ========== ORDERS LIST ========== */
.tlc-order-item {
    background: var(--tlc-white);
    border-radius: var(--tlc-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--tlc-shadow);
}

.tlc-order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tlc-order-item-date {
    font-weight: 700;
    color: var(--tlc-gray-800);
}

.tlc-order-item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tlc-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.tlc-status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.tlc-status-delivered {
    background: #dbeafe;
    color: #1e40af;
}

.tlc-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.tlc-order-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tlc-order-item-child {
    color: var(--tlc-gray-600);
    font-size: 0.9rem;
}

.tlc-order-item-menu {
    color: var(--tlc-gray-500);
    font-size: 0.85rem;
}

.tlc-order-item-price {
    font-weight: 700;
    color: var(--tlc-primary);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* ========== MODAL ========== */
.tlc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--tlc-transition);
    padding: 20px;
}

.tlc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tlc-modal-simple {
    background: var(--tlc-white);
    border-radius: var(--tlc-radius-xl);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    position: relative;
    transform: scale(0.9);
    transition: var(--tlc-transition);
}

.tlc-modal-overlay.active .tlc-modal-simple {
    transform: scale(1);
}

.tlc-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--tlc-gray-100);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--tlc-gray-500);
    cursor: pointer;
    transition: var(--tlc-transition);
}

.tlc-modal-close-btn:hover {
    background: var(--tlc-gray-200);
}

.tlc-modal-simple h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
    margin-bottom: 24px;
    text-align: center;
}

.tlc-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tlc-modal-input {
    width: 100%;
    border: 2px solid var(--tlc-gray-200);
    border-radius: var(--tlc-radius);
    padding: 14px 18px;
    font-size: 1rem;
    transition: var(--tlc-transition);
}

.tlc-modal-input:focus {
    outline: none;
    border-color: var(--tlc-primary);
}

.tlc-modal-partner-badge {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 12px 16px;
    border-radius: var(--tlc-radius);
    font-weight: 600;
    text-align: center;
}

.tlc-modal-btn {
    width: 100%;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tlc-transition);
    background: var(--tlc-primary);
    color: var(--tlc-white);
}

.tlc-modal-btn:hover {
    background: var(--tlc-primary-dark);
}

.tlc-modal-btn-success {
    background: var(--tlc-success);
}

.tlc-modal-btn-success:hover {
    background: var(--tlc-success-dark);
}

/* ========== LOADING & SPINNER ========== */
.tlc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.tlc-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--tlc-gray-200);
    border-top-color: var(--tlc-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== EMPTY STATE ========== */
.tlc-empty {
    text-align: center;
    padding: 60px 24px;
}

.tlc-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.tlc-empty-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tlc-gray-600);
    margin-bottom: 8px;
}

.tlc-empty-subtext {
    color: var(--tlc-gray-400);
    font-size: 0.95rem;
}

/* ========== ALERTS ========== */
.tlc-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
    animation: toastIn 0.3s ease;
    box-shadow: var(--tlc-shadow-lg);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.tlc-toast-success {
    background: var(--tlc-success);
    color: var(--tlc-white);
}

.tlc-toast-error {
    background: var(--tlc-danger);
    color: var(--tlc-white);
}

.tlc-toast-info {
    background: var(--tlc-primary);
    color: var(--tlc-white);
}

/* ========== DEADLINE WARNING ========== */
.tlc-deadline-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #fef3cd 0%, #fff3cd 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--tlc-radius);
    padding: 16px 24px;
    margin: 16px;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.tlc-warning-icon {
    font-size: 1.8rem;
}

.tlc-warning-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
}

/* Order closed overlay state */
.tlc-order-closed-state .tlc-menu-card,
.tlc-order-closed-state .tlc-extra-card {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(50%);
}

.tlc-order-closed-state .tlc-day-block {
    position: relative;
}

.tlc-order-closed-state .tlc-day-block::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
    pointer-events: none;
}

/* ========== ACTIVE CHILD INDICATOR ========== */
.tlc-active-indicator {
    padding: 12px 16px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: var(--tlc-radius);
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--tlc-gray-700);
    text-align: center;
}

.tlc-active-indicator strong {
    color: var(--tlc-primary-dark);
}

.tlc-indicator-ordered {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.tlc-indicator-ordered strong {
    color: #047857;
}

/* ========== ORDERED DAYS ========== */
.tlc-day-ordered {
    position: relative;
}

.tlc-day-ordered .tlc-menu-card {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(30%);
}

/* In modify mode: override ordered-day disabling — cards must be selectable */
body.tlc-modify-active .tlc-day-ordered .tlc-menu-card,
body.tlc-modify-active .tlc-day-block.tlc-day-ordered .tlc-menu-card {
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
}
body.tlc-modify-active .tlc-day-block.tlc-day-ordered::after {
    display: none;
}

.tlc-ordered-badge {
    display: inline-block;
    background: var(--tlc-success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

/* ========== CHILD CHECKBOX SELECTOR ========== */
.tlc-child-selector-container {
    padding: 12px 16px;
    background: var(--tlc-white);
    border-bottom: 1px solid var(--tlc-gray-200);
}

.tlc-child-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tlc-child-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--tlc-gray-100);
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--tlc-transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.tlc-child-checkbox:hover {
    background: var(--tlc-gray-200);
}

.tlc-child-checkbox.active-child {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: var(--tlc-primary);
}

.tlc-child-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tlc-primary);
}

.tlc-child-checkbox .child-name {
    color: var(--tlc-gray-800);
}

.tlc-child-checkbox .child-partner {
    font-size: 0.75rem;
    color: var(--tlc-gray-500);
    font-weight: 500;
}

/* Select all option */
.tlc-select-all-container {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--tlc-gray-300);
}

/* ========== ORDER SUMMARY DETAIL ========== */
#tlc-order-summary-detail {
    font-size: 0.85rem;
    padding: 8px 12px;
    background: var(--tlc-gray-100);
    border-radius: var(--tlc-radius);
    margin-bottom: 8px;
}

.tlc-summary-child {
    font-weight: 700;
    color: var(--tlc-primary-dark);
}

.tlc-summary-price {
    float: right;
    font-weight: 700;
    color: var(--tlc-success);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .tlc-welcome-screen {
        padding: 16px 12px;
    }

    .tlc-welcome-card {
        padding: 40px 24px 36px;
        border-radius: 20px;
    }

    .tlc-welcome-title {
        font-size: 1.6rem;
    }

    .tlc-welcome-text {
        font-size: 0.9rem;
    }

    .tlc-code-input {
        padding: 14px 12px 14px 20px;
        font-size: 0.85rem;
    }

    .tlc-btn-verify {
        width: 38px;
        height: 38px;
    }

    .tlc-name-form {
        padding: 24px 20px;
    }

    .tlc-days-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }

    .tlc-day-card {
        padding: 16px;
    }

    .tlc-day-emoji {
        font-size: 1.6rem;
    }

    .tlc-day-name {
        font-size: 1rem;
    }

    .tlc-day-price {
        font-size: 1.1rem;
    }

    .tlc-order-footer {
        flex-direction: column;
        gap: 12px;
    }

    .tlc-order-summary {
        width: 100%;
        justify-content: center;
    }

    .tlc-btn-order {
        width: 100%;
    }
}

/* ========== MULTI-CHILD SELECTOR ========== */
.tlc-multi-child-selector {
    padding: 16px;
    background: var(--tlc-white);
    border-bottom: 1px solid var(--tlc-gray-200);
}

.tlc-child-selector-hint {
    font-size: 0.9rem;
    color: var(--tlc-gray-500);
    margin-bottom: 12px;
}

.tlc-child-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tlc-child-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid var(--tlc-gray-200);
    border-radius: var(--tlc-radius);
    background: var(--tlc-white);
    cursor: pointer;
    transition: var(--tlc-transition);
    position: relative;
    min-width: 120px;
}

.tlc-child-tab:hover {
    border-color: var(--tlc-primary);
}

.tlc-child-tab.active {
    border-color: var(--tlc-primary);
    background: linear-gradient(135deg, rgba(var(--tlc-primary-rgb), 0.05) 0%, var(--tlc-white) 100%);
}

.tlc-child-tab-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tlc-gray-800);
}

.tlc-child-tab-partner {
    font-size: 0.75rem;
    color: var(--tlc-gray-500);
    margin-top: 2px;
}

.tlc-child-tab-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--tlc-primary);
    color: var(--tlc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: var(--tlc-transition);
}

.tlc-child-tab-count.has-selection {
    opacity: 1;
    transform: scale(1);
}

/* Update order summary for multi-child */
.tlc-order-summary-multi {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tlc-order-child-summary {
    font-size: 0.85rem;
    color: var(--tlc-gray-600);
}

.tlc-order-child-summary strong {
    color: var(--tlc-gray-800);
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tlc-bottom-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .tlc-order-footer {
        bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* ========================================== */
/* ============ V3 MODERN LAYOUT ============ */
/* ========================================== */

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bounceSmall {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.tlc-app.tlc-v2 {
    padding-bottom: 0;
}

.tlc-order-screen-v2 {
    min-height: 100vh;
    background: var(--tlc-bg);
}

/* --- Main Content Container --- */
.tlc-main-content {
    max-width: 1152px;
    margin: 0 auto;
    padding: 48px 16px 160px;
    animation: fadeInDown 0.5s ease;
}

/* --- Child Tabs (above dashboard card) --- */
.tlc-child-tabs {
    display: flex;
    gap: 6px;
    padding: 0 4px;
    margin-bottom: -1px;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tlc-child-tabs::-webkit-scrollbar {
    display: none;
}

.tlc-child-tab {
    position: relative;
    padding: 10px 18px;
    border-radius: 14px 14px 0 0;
    font-weight: 700;
    font-size: 0.82rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tlc-child-tab.active {
    background: var(--tlc-brand);
    color: white;
    padding-bottom: 14px;
    transform: translateY(3px);
    box-shadow: 0 -4px 12px rgba(var(--tlc-primary-dark-rgb), 0.2);
}

.tlc-child-tab:not(.active) {
    background: var(--tlc-white);
    color: var(--tlc-gray-500);
    border: 1px solid var(--tlc-gray-200);
    border-bottom: none;
}

.tlc-child-tab:not(.active):hover {
    background: var(--tlc-gray-100);
}

.tlc-child-tab .tlc-tab-indicator {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

/* Add Child Tab ("+") */
.tlc-child-tab-add {
    padding: 10px 16px;
    border-radius: 14px 14px 0 0;
    font-weight: 700;
    font-size: 1rem;
    border: 2px dashed var(--tlc-gray-300);
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--tlc-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    flex-shrink: 0;
}

.tlc-child-tab-add:hover {
    border-color: var(--tlc-primary);
    color: var(--tlc-primary);
    background: rgba(var(--tlc-primary-rgb), 0.05);
}

/* --- Dashboard Card --- */
.tlc-dashboard-card {
    background: linear-gradient(to right, var(--tlc-brand), var(--tlc-brand-mid));
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tlc-dashboard-card {
        border-radius: 0 24px 0 0;
    }
}

.tlc-dashboard-card.single-child {
    border-radius: 24px 24px 0 0;
}

/* When single child, push tab inward past the card's rounded corner */
.tlc-child-tabs.single-child-tabs {
    padding-left: 28px;
}

/* Decorative blurred circles */
.tlc-dashboard-bg-circle-1 {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 256px;
    height: 256px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.tlc-dashboard-bg-circle-2 {
    position: absolute;
    bottom: -20px;
    left: 80px;
    width: 160px;
    height: 160px;
    background: rgba(var(--tlc-primary-dark-rgb),0.2);
    border-radius: 50%;
    filter: blur(32px);
    pointer-events: none;
}

.tlc-dashboard-content {
    position: relative;
    z-index: 20;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .tlc-dashboard-content {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: 32px;
    }
}

/* Dashboard left - user info */
.tlc-dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tlc-dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.tlc-dashboard-badge-text {
    background: rgba(67,56,202,0.5);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(199,210,254,1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(var(--tlc-primary-dark-rgb),0.3);
}

.tlc-dashboard-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74,222,128,0.6);
}

.tlc-dashboard-name {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: white !important;
    margin-bottom: 4px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .tlc-dashboard-name {
        font-size: 3rem;
    }
}

.tlc-dashboard-group {
    color: #a5b4fc;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tlc-dashboard-group svg {
    width: 16px;
    height: 16px;
}

/* Dashboard right - stats & actions */
.tlc-dashboard-right {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.tlc-weekly-cost-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 120px;
}

.tlc-weekly-cost-label {
    color: #c7d2fe;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.tlc-weekly-cost-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.tlc-delete-btn {
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    width: auto;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
    color: var(--tlc-gray-400);
}

.tlc-delete-btn.has-selection {
    background: rgba(239,68,68,0.2);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.3);
}

.tlc-delete-btn.has-selection:hover {
    background: rgba(239,68,68,0.3);
    color: white;
}

.tlc-delete-btn:not(.has-selection) {
    cursor: not-allowed;
    opacity: 0.6;
}

.tlc-delete-btn svg {
    width: 20px;
    height: 20px;
}

.tlc-delete-btn-text {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* --- Header bar (language + add child) --- */
.tlc-header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 8px;
}

.tlc-btn-add-client {
    width: 40px;
    height: 40px;
    border: 2px solid var(--tlc-primary);
    border-radius: 10px;
    background: transparent;
    color: var(--tlc-primary);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tlc-transition);
}

.tlc-btn-add-client:hover {
    background: var(--tlc-primary);
    color: var(--tlc-white);
}

/* --- Language selector --- */
.tlc-lang-selector {
    display: flex;
    align-items: center;
}

.tlc-lang-select {
    padding: 8px 12px;
    border: 2px solid var(--tlc-gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tlc-gray-700);
    background: var(--tlc-white);
    cursor: pointer;
    transition: var(--tlc-transition);
}

.tlc-lang-select:hover,
.tlc-lang-select:focus {
    border-color: var(--tlc-primary);
    outline: none;
}

/* --- Page Tab Navigation (Order/My Orders/History/Contact) --- */
.tlc-tabs-v2 {
    display: flex;
    background: var(--tlc-white);
    border-bottom: 2px solid var(--tlc-gray-200);
    overflow-x: auto;
    margin-top: 24px;
    border-radius: 12px 12px 0 0;
}

.tlc-tab-v2 {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tlc-gray-500);
    cursor: pointer;
    transition: var(--tlc-transition);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tlc-tab-v2:hover {
    color: var(--tlc-primary);
}

.tlc-tab-v2.active {
    color: var(--tlc-primary);
    border-bottom-color: var(--tlc-primary);
}

/* Tab Content */
.tlc-tab-content {
    display: none;
    padding: 24px 0;
    padding-bottom: 100px;
}

.tlc-tab-content.active {
    display: block;
}

/* --- Week Info Bar --- */
.tlc-week-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    margin-top: 8px;
}

.tlc-week-info-left {
    color: var(--tlc-gray-400);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.tlc-week-info-divider {
    height: 1px;
    background: var(--tlc-gray-200);
    flex: 1;
    margin-left: 16px;
}

/* No Menu / Order Closed */
.tlc-no-menu-v2,
.tlc-order-closed {
    text-align: center;
    padding: 80px 24px;
}

.tlc-no-menu-v2 .tlc-no-menu-icon,
.tlc-order-closed .tlc-order-closed-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.6;
}

.tlc-no-menu-v2 h2,
.tlc-order-closed h2 {
    font-size: 1.5rem;
    color: var(--tlc-gray-800);
    margin-bottom: 12px;
}

.tlc-no-menu-v2 p,
.tlc-order-closed p {
    color: var(--tlc-gray-500);
}

/* --- Day Section --- */
.tlc-day-section {
    margin-bottom: 48px;
}

.tlc-app .tlc-day-header {
    display: flex !important;
    align-items: flex-end !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    padding: 0 8px !important;
}

.tlc-app .tlc-day-abbrev {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: var(--tlc-gray-200) !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.tlc-app .tlc-day-abbrev.is-today {
    color: var(--tlc-primary-dark) !important;
}

.tlc-app .tlc-day-header-info {
    padding-bottom: 6px !important;
}

.tlc-app .tlc-day-header-info h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--tlc-gray-800) !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.tlc-app .tlc-day-header-info .tlc-today-badge {
    display: inline-block !important;
    margin-left: 12px !important;
    font-size: 0.7rem !important;
    background: var(--tlc-primary-dark) !important;
    color: white !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    vertical-align: middle !important;
}

.tlc-app .tlc-day-header-info span {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--tlc-gray-400) !important;
}

.tlc-deadline-notice {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #92400e;
}

/* --- Meal Cards Grid --- */
.tlc-meals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .tlc-meals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tlc-meals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .tlc-meals-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Meal Card --- */
.tlc-meal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: var(--tlc-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--tlc-gray-200);
    height: 100%;
}

.tlc-meal-card:hover {
    border-color: rgba(var(--tlc-primary-dark-rgb),0.3);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.tlc-meal-card.selected {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--tlc-primary-dark), 0 20px 25px -5px rgba(var(--tlc-primary-dark-rgb),0.15);
    transform: translateY(-4px);
}

/* Meal Image */
.tlc-meal-image {
    width: 100%;
    height: 192px;
    position: relative;
    overflow: hidden;
    background: var(--tlc-gray-100);
}

.tlc-meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.tlc-meal-card:hover .tlc-meal-image img {
    transform: scale(1.1);
}

.tlc-meal-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--tlc-gray-300);
}

.tlc-meal-image-placeholder svg {
    width: 48px;
    height: 48px;
}

/* Type Badge */
.tlc-meal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
}

.tlc-meal-badge.badge-a { background: rgba(var(--tlc-primary-dark-rgb),0.9); }
.tlc-meal-badge.badge-b { background: rgba(249,115,22,0.9); }
.tlc-meal-badge.badge-c { background: rgba(16,185,129,0.9); }
.tlc-meal-badge.badge-d { background: rgba(6,182,212,0.9); }
.tlc-meal-badge.badge-vega { background: rgba(22,163,74,0.9); }
.tlc-meal-badge.badge-leves { background: rgba(245,158,11,0.9); }
.tlc-meal-badge.badge-desszert { background: rgba(236,72,153,0.9); }

/* Selected Overlay */
.tlc-meal-selected-overlay {
    position: absolute;
    inset: 0;
    background: rgba(49,46,129,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tlc-meal-card.selected .tlc-meal-selected-overlay {
    display: flex;
}

.tlc-meal-check-circle {
    background: white;
    color: var(--tlc-primary-dark);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: bounceSmall 0.5s ease;
}

.tlc-meal-check-circle svg {
    width: 32px;
    height: 32px;
}

/* Meal Content */
.tlc-meal-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.tlc-meal-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Vertical item list (replaces comma-joined names) */
.tlc-meal-items {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    flex: 1;
}

.tlc-meal-item {
    display: flex;
    flex-direction: column;
    padding: 3px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tlc-meal-item:last-child {
    border-bottom: none;
}

.tlc-meal-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tlc-gray-800);
    line-height: 1.3;
}

.tlc-meal-item-desc {
    font-size: 0.8rem;
    color: var(--tlc-gray-500);
    line-height: 1.3;
}

.tlc-meal-desc {
    font-size: 0.9rem;
    color: var(--tlc-gray-500);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tlc-meal-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--tlc-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tlc-meal-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: #4338ca;
}

/* --- Extras Panel --- */
.tlc-extras-panel {
    background: var(--tlc-white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--tlc-gray-100);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.tlc-extras-panel-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tlc-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tlc-extras-panel-title svg {
    width: 16px;
    height: 16px;
}

.tlc-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Extra Button — vertical card */
.tlc-extra-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--tlc-gray-200);
    background: var(--tlc-white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.tlc-extra-btn:hover {
    border-color: var(--tlc-gray-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tlc-extra-btn.selected {
    background: #eef2ff;
    border-color: var(--tlc-primary-dark);
    box-shadow: 0 0 0 1px var(--tlc-primary-dark), 0 4px 12px rgba(var(--tlc-primary-dark-rgb),0.1);
}

/* Extra card image area (top half) */
.tlc-extra-thumb {
    width: 100%;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--tlc-gray-100);
    border-radius: 0;
}

.tlc-extra-btn.selected .tlc-extra-thumb {
    background: #eef2ff;
}

.tlc-extra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.tlc-extra-btn:hover .tlc-extra-thumb img {
    transform: scale(1.04);
}

.tlc-extra-thumb .tlc-extra-emoji {
    font-size: 2rem;
}

/* Extra card content (bottom half) */
.tlc-extra-info {
    flex: 1;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tlc-extra-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
    line-height: 1.2;
    text-align: center;
}

.tlc-extra-btn.selected .tlc-extra-name {
    color: var(--tlc-brand);
}

.tlc-extra-desc {
    font-size: 0.78rem;
    color: var(--tlc-gray-500);
    text-align: center;
    line-height: 1.3;
    margin-top: 2px;
    margin-bottom: 4px;
}

.tlc-extra-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Price badge – prominent, colored */
.tlc-extra-price {
    display: inline-block;
    background: var(--tlc-primary, #6366f1);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.tlc-extra-btn.selected .tlc-extra-price {
    background: var(--tlc-brand, #312e81);
}


.tlc-extra-check-icon {
    display: none;
    background: var(--tlc-primary-dark);
    color: white;
    border-radius: 50%;
    padding: 2px;
    width: 16px;
    height: 16px;
}

.tlc-extra-btn.selected .tlc-extra-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tlc-extra-check-icon svg {
    width: 12px;
    height: 12px;
}

/* --- Sticky Footer --- */
.tlc-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tlc-white);
    border-top: 1px solid var(--tlc-gray-200);
    box-shadow: 0 -10px 40px -15px rgba(0,0,0,0.1);
    z-index: 50;
    display: none;
}

.tlc-sticky-footer.visible {
    display: block;
}

.tlc-sticky-footer-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .tlc-sticky-footer-inner {
        padding: 16px 16px;
    }
}

.tlc-footer-left {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.tlc-footer-summary-label {
    color: var(--tlc-gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.tlc-footer-summary-label svg {
    width: 12px;
    height: 12px;
    color: var(--tlc-gray-400);
    transition: transform 0.2s;
}

.tlc-footer-summary-label svg.rotated {
    transform: rotate(180deg);
}

.tlc-footer-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: #4338ca;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: color 0.2s;
}

.tlc-footer-left:hover .tlc-footer-total {
    color: var(--tlc-primary-dark);
}

.tlc-footer-items {
    font-size: 0.9rem;
    color: var(--tlc-gray-400);
    font-weight: 500;
}

.tlc-footer-order-btn {
    background: var(--tlc-primary-dark);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(var(--tlc-primary-dark-rgb),0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .tlc-footer-order-btn {
        padding: 12px 32px;
    }
}

.tlc-footer-order-btn:hover {
    background: #4338ca;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--tlc-primary-dark-rgb),0.4);
}

.tlc-footer-order-btn:active {
    transform: scale(0.95);
}

.tlc-footer-order-btn:disabled {
    background: var(--tlc-gray-300);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.tlc-footer-order-btn svg {
    width: 16px;
    height: 16px;
}

/* --- Popover (above footer) --- */
.tlc-footer-popover {
    position: fixed;
    bottom: 96px;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 16px;
    display: none;
    animation: fadeIn 0.2s ease;
}

.tlc-footer-popover.visible {
    display: block;
}

.tlc-popover-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--tlc-white);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid var(--tlc-gray-100);
    overflow: hidden;
}

.tlc-popover-header {
    background: var(--tlc-gray-100);
    padding: 16px 24px;
    border-bottom: 1px solid var(--tlc-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tlc-popover-header h3 {
    font-weight: 700;
    color: var(--tlc-gray-800);
    font-size: 1rem;
    margin: 0;
}

.tlc-popover-close {
    background: none;
    border: none;
    color: var(--tlc-gray-400);
    cursor: pointer;
    padding: 4px;
}

.tlc-popover-close:hover {
    color: var(--tlc-gray-600);
}

.tlc-popover-close svg {
    width: 20px;
    height: 20px;
}

.tlc-popover-list {
    padding: 8px;
}

.tlc-popover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    transition: background 0.15s;
}

.tlc-popover-item:hover {
    background: var(--tlc-gray-100);
}

.tlc-popover-item-name {
    font-weight: 700;
    color: var(--tlc-gray-800);
}

.tlc-popover-item-count {
    font-size: 0.75rem;
    color: var(--tlc-gray-500);
}

.tlc-popover-item-price {
    font-weight: 700;
    color: var(--tlc-primary-dark);
}

.tlc-popover-footer {
    background: var(--tlc-gray-100);
    padding: 12px 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--tlc-gray-500);
    border-top: 1px solid var(--tlc-gray-100);
}

/* --- Modern Modal --- */
.tlc-modal-modern-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tlc-modal-modern-overlay.visible {
    display: flex;
}

.tlc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,0.6);
    backdrop-filter: blur(4px);
}

.tlc-modal-modern {
    position: relative;
    background: var(--tlc-white);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    max-width: 448px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

.tlc-modal-modern-header {
    padding: 16px 24px;
    border-bottom: 1px solid;
}

.tlc-modal-modern-header.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.tlc-modal-modern-header.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.tlc-modal-modern-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.tlc-modal-modern-header.danger h3 {
    color: #b91c1c;
}

.tlc-modal-modern-header.success h3 {
    color: #15803d;
}

.tlc-modal-modern-body {
    padding: 24px;
    color: var(--tlc-gray-600);
    line-height: 1.6;
}

.tlc-modal-modern-footer {
    padding: 16px 24px;
    background: var(--tlc-gray-100);
    border-top: 1px solid var(--tlc-gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tlc-modal-btn-cancel {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tlc-gray-600);
    background: var(--tlc-white);
    border: 1px solid var(--tlc-gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.tlc-modal-btn-cancel:hover {
    background: var(--tlc-gray-100);
    color: var(--tlc-gray-800);
}

.tlc-modal-btn-danger {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    background: #dc2626;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220,38,38,0.2);
    transition: all 0.15s;
}

.tlc-modal-btn-danger:hover {
    background: #b91c1c;
}

.tlc-modal-btn-success {
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    background: #16a34a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22,163,74,0.2);
    transition: all 0.15s;
}

.tlc-modal-btn-success:hover {
    background: #15803d;
}

/* Order summary in success modal */
.tlc-order-summary-box {
    background: var(--tlc-gray-100);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--tlc-gray-100);
    margin-top: 16px;
}

.tlc-order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--tlc-gray-100);
}

.tlc-order-summary-row:last-child {
    border-bottom: none;
}

.tlc-order-summary-row .name {
    color: var(--tlc-gray-700);
}

.tlc-order-summary-row .price {
    font-weight: 700;
    color: var(--tlc-primary-dark);
}

.tlc-order-summary-grand {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--tlc-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
    font-size: 1.1rem;
}

/* --- Ordered day badge --- */
.tlc-ordered-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: auto;
}

/* Order status badges */
.tlc-order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
}

/* --- Order actions (My Orders tab) --- */
.tlc-order-actions { display: flex; gap: 10px; margin-top: 12px; }
.tlc-btn-modify { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--tlc-primary); color: white; border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--tlc-transition); }
.tlc-btn-modify:hover { background: var(--tlc-primary-dark); }
.tlc-btn-cancel { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: transparent; color: var(--tlc-danger); border: 2px solid var(--tlc-danger); border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--tlc-transition); }
.tlc-btn-cancel:hover { background: var(--tlc-danger); color: white; }

/* Contact Content */
.tlc-contact-content {
    max-width: 500px;
    margin: 0 auto;
}

.tlc-contact-card {
    background: var(--tlc-white);
    border-radius: var(--tlc-radius);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--tlc-shadow);
}

.tlc-contact-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.tlc-contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
    margin-bottom: 8px;
}

.tlc-contact-desc {
    color: var(--tlc-gray-500);
}

.tlc-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--tlc-white);
    border-radius: var(--tlc-radius);
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--tlc-gray-800);
    transition: var(--tlc-transition);
    box-shadow: var(--tlc-shadow);
}

.tlc-contact-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--tlc-shadow-lg);
}

.tlc-contact-row-icon {
    font-size: 1.5rem;
}

/* Responsive - Mobile adjustments */
@media (max-width: 768px) {
    .tlc-tabs-v2 {
        justify-content: flex-start;
    }

    .tlc-tab-v2 {
        flex: 0 0 auto;
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .tlc-child-tabs {
        gap: 4px;
        padding: 0 2px;
    }

    .tlc-child-tab {
        padding: 8px 14px;
        font-size: 0.76rem;
        border-radius: 12px 12px 0 0;
    }

    .tlc-child-tab.active {
        padding-bottom: 12px;
    }

    .tlc-child-tab-add {
        padding: 8px 12px;
        min-width: 36px;
        border-radius: 12px 12px 0 0;
    }
}

/* ========== ORDER BREAKDOWN (multi-child total) ========== */
#tlc-order-breakdown,
.tlc-order-breakdown {
    padding: 12px 0;
    border-bottom: 1px solid var(--tlc-gray-200);
    margin-bottom: 10px;
}

.tlc-child-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--tlc-gray-100);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.tlc-child-subtotal .tlc-child-name {
    font-weight: 600;
    color: var(--tlc-gray-800);
}

.tlc-child-subtotal .tlc-child-days {
    color: var(--tlc-gray-500);
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
}

.tlc-child-subtotal .tlc-child-price {
    font-weight: 700;
    color: var(--tlc-primary);
}

/* ========== EXISTING ORDER NOTICE ========== */
.tlc-existing-order-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tlc-notice-icon {
    font-size: 1.5rem;
}

.tlc-notice-text {
    flex: 1;
    color: #1e40af;
    font-weight: 500;
}

.tlc-btn-modify-existing {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tlc-transition);
}

.tlc-btn-modify-existing:hover {
    background: #2563eb;
}

/* ========== MY ORDERS - WEEK CARDS ========== */
.tlc-order-week-card {
    background: var(--tlc-white);
    border-radius: var(--tlc-radius);
    box-shadow: var(--tlc-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.tlc-order-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-bottom: 1px solid var(--tlc-gray-200);
}

.tlc-week-label {
    font-weight: 700;
    color: var(--tlc-gray-800);
    font-size: 1.1rem;
}

.tlc-week-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tlc-badge-editable {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.tlc-badge-locked {
    background: var(--tlc-gray-400);
    color: white;
}

.tlc-order-week-orders {
    padding: 16px 20px;
}

.tlc-order-week-orders .tlc-order-item {
    padding: 12px 16px;
    background: var(--tlc-gray-100);
    border-radius: 10px;
    margin-bottom: 8px;
}

.tlc-order-week-orders .tlc-order-item:last-child {
    margin-bottom: 0;
}

/* Locked order row — past its per-day deadline */
.tlc-order-week-orders .tlc-order-item-locked {
    opacity: 0.6;
    background: var(--tlc-gray-50, #f9fafb);
    border-left: 3px solid var(--tlc-gray-300, #d1d5db);
}

.tlc-order-lock-badge {
    margin-left: 6px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.tlc-order-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.tlc-order-sep {
    color: var(--tlc-gray-400, #9ca3af);
    margin: 0 2px;
    user-select: none;
}

.tlc-order-date {
    color: var(--tlc-gray-600, #4b5563);
    font-size: 0.85rem;
    white-space: nowrap;
}

.tlc-order-child {
    font-weight: 600;
    color: var(--tlc-gray-800, #1f2937);
}

.tlc-order-menu {
    flex: 1;
    color: var(--tlc-gray-700, #374151);
}

.tlc-order-price {
    font-weight: 700;
    color: var(--tlc-primary, #6366f1);
    white-space: nowrap;
}

.tlc-order-item-extras {
    display: block;
    color: var(--tlc-gray-500);
    font-size: 0.85rem;
    margin-top: 4px;
}

.tlc-order-week-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--tlc-gray-100);
    border-top: 1px solid var(--tlc-gray-200);
}

.tlc-week-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tlc-week-total-label {
    color: var(--tlc-gray-600);
}

.tlc-week-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tlc-gray-800);
}

.tlc-week-actions {
    display: flex;
    gap: 10px;
}

.tlc-btn-cancel-week {
    padding: 8px 18px;
    border: 2px solid var(--tlc-danger);
    background: transparent;
    color: var(--tlc-danger);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tlc-transition);
}

.tlc-btn-cancel-week:hover {
    background: var(--tlc-danger);
    color: white;
}

.tlc-btn-outline {
    background: transparent;
    border: 2px solid var(--tlc-gray-300);
    color: var(--tlc-gray-600);
}

.tlc-btn-outline:hover {
    border-color: var(--tlc-gray-400);
    background: var(--tlc-gray-100);
}

/* Status colors */
.tlc-status-pending {
    background: var(--tlc-warning);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tlc-status-confirmed,
.tlc-status-paid {
    background: var(--tlc-success);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tlc-status-cancelled {
    background: var(--tlc-danger);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tlc-status-delivered {
    background: var(--tlc-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== ACTIVE CHILD INDICATOR ========== */
.tlc-child-checkbox.active-child {
    border-color: var(--tlc-primary) !important;
    background: linear-gradient(135deg, rgba(var(--tlc-primary-rgb), 0.1) 0%, var(--tlc-white) 100%) !important;
    box-shadow: 0 0 0 3px rgba(var(--tlc-primary-rgb), 0.2);
}

.tlc-active-child-indicator {
    padding: 10px 16px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 10px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tlc-indicator-icon {
    font-size: 1.2rem;
}

/* ========== SELECTION MODE TOGGLE ========== */
.tlc-selection-mode-toggle {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 6px;
    background: var(--tlc-gray-100);
    border-radius: 10px;
}

.tlc-mode-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tlc-gray-600);
    cursor: pointer;
    transition: var(--tlc-transition);
}

.tlc-mode-btn:hover {
    background: var(--tlc-white);
}

.tlc-mode-btn.active {
    background: var(--tlc-white);
    color: var(--tlc-primary);
    box-shadow: var(--tlc-shadow);
}

/* ========== ORDERED DAY STYLING ========== */
.tlc-day-block.tlc-day-ordered {
    position: relative;
}

.tlc-day-block.tlc-day-ordered::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 197, 94, 0.08);
    pointer-events: none;
    border-radius: inherit;
}

.tlc-day-block.tlc-day-ordered .tlc-menu-card {
    opacity: 0.6;
    pointer-events: none;
}

.tlc-ordered-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: auto;
}

/* ========== DEADLINE CLOSED STYLING ========== */
.tlc-order-closed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.tlc-order-closed-text {
    background: var(--tlc-danger);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* ========== ORDER MODIFICATION MODE ========== */

.tlc-week-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tlc-btn-modify-week {
    background: linear-gradient(135deg, var(--tlc-primary), var(--tlc-primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tlc-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tlc-btn-modify-week:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--tlc-primary-rgb), 0.3);
}

.tlc-modify-mode-banner {
    background: linear-gradient(135deg, #fef3cd 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tlc-modify-mode-banner span {
    color: #856404;
    font-weight: 600;
    font-size: 0.95rem;
}

.tlc-cancel-modify-btn {
    background: white;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tlc-transition);
}

.tlc-cancel-modify-btn:hover {
    background: #dc3545;
    color: white;
}

@media (max-width: 480px) {
    .tlc-week-actions {
        flex-direction: column;
        width: 100%;
    }

    .tlc-btn-modify-week,
    .tlc-btn-cancel-week {
        width: 100%;
        justify-content: center;
    }

    .tlc-modify-mode-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================== */
/* ============ QUICKNAV MENU BAR =========== */
/* ========================================== */

.tlc-quicknav {
    background: var(--tlc-white);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 28px rgba(49, 46, 129, 0.12);
    padding: 6px 8px;
    margin-top: 0;
    margin-bottom: 24px;
    position: relative;
    z-index: 30;
}

/* When deadline alert follows, quicknav loses bottom rounding and margin */
.tlc-quicknav.has-deadline {
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.tlc-quicknav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.tlc-quicknav-grid.has-feedback {
    grid-template-columns: repeat(5, 1fr);
}

.tlc-quicknav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 11px 4px 9px;
    border-radius: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #9ca3af;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
}

.tlc-quicknav-item:hover {
    background: rgba(var(--tlc-primary-rgb), 0.08);
    color: var(--tlc-primary);
}

.tlc-quicknav-item.active {
    background: transparent;
    color: var(--tlc-brand);
}

/* Dot indicator below active item */
.tlc-quicknav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tlc-primary);
}

.tlc-quicknav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tlc-quicknav-item.active svg {
    color: var(--tlc-primary-dark);
}

.tlc-quicknav-item span {
    white-space: nowrap;
}

/* Logout button in QuickNav */
.tlc-quicknav-logout {
    color: #b0b0b0 !important;
}

.tlc-quicknav-logout:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

/* Logout never gets active dot */
.tlc-quicknav-logout.active::after {
    display: none;
}

/* ========================================== */
/* ============ DEADLINE ALERT ============== */
/* ========================================== */

.tlc-deadline-alert {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-top: none;
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(49, 46, 129, 0.08);
    position: relative;
    z-index: 20;
}

.tlc-deadline-alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
}

.tlc-deadline-alert-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlc-deadline-alert-icon {
    width: 36px;
    height: 36px;
    background: #f59e0b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tlc-deadline-alert-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.tlc-deadline-alert-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400e;
}

.tlc-deadline-alert-date {
    font-size: 0.75rem;
    color: #b45309;
    font-weight: 500;
}

.tlc-deadline-alert-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b45309;
    flex-shrink: 0;
}

.tlc-deadline-alert-timer svg {
    width: 14px;
    height: 14px;
}

.tlc-deadline-alert-chevron {
    width: 20px;
    height: 20px;
    color: #b45309;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
    transform: rotate(180deg);
}

.tlc-deadline-alert.collapsed .tlc-deadline-alert-chevron {
    transform: rotate(0deg);
}

.tlc-deadline-alert-body {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tlc-deadline-alert.collapsed .tlc-deadline-alert-body {
    max-height: 0;
}

.tlc-deadline-alert-body-inner {
    padding: 0 20px 16px;
    border-top: 1px solid rgba(252, 211, 77, 0.5);
    padding-top: 14px;
}

.tlc-deadline-alert-text {
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tlc-deadline-alert-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.tlc-deadline-alert-contact:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.tlc-deadline-alert-contact svg {
    width: 14px;
    height: 14px;
}

/* Deadline alert - closed state (red variant) */
.tlc-deadline-alert.tlc-deadline-closed {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
}

.tlc-deadline-alert.tlc-deadline-closed .tlc-deadline-alert-icon {
    background: #ef4444;
}

.tlc-deadline-alert.tlc-deadline-closed .tlc-deadline-alert-title,
.tlc-deadline-alert.tlc-deadline-closed .tlc-deadline-alert-text {
    color: #991b1b;
}

.tlc-deadline-alert.tlc-deadline-closed .tlc-deadline-alert-date {
    color: #b91c1c;
}

.tlc-deadline-alert.tlc-deadline-closed .tlc-deadline-alert-timer {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.tlc-deadline-alert.tlc-deadline-closed .tlc-deadline-alert-chevron {
    color: #b91c1c;
}

.tlc-deadline-alert.tlc-deadline-closed .tlc-deadline-alert-body-inner {
    border-top-color: rgba(252, 165, 165, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .tlc-quicknav-item {
        padding: 9px 2px 7px;
        font-size: 0.6rem;
    }

    .tlc-quicknav-item svg {
        width: 18px;
        height: 18px;
    }

    .tlc-deadline-alert-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tlc-deadline-alert-timer {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ========== THEME OVERRIDE PROTECTION ==========
 * Prevents active theme (Elementor, Hello, etc.) from overriding
 * plugin button/tab styles. Uses .tlc-app prefix for specificity.
 * ================================================ */
.tlc-app button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

/* Add-child "+" tab button */
.tlc-app .tlc-child-tab-add {
    border: 2px dashed var(--tlc-gray-300) !important;
    border-bottom: none !important;
    background: transparent !important;
    color: var(--tlc-gray-400) !important;
    outline: none !important;
    box-shadow: none !important;
}
.tlc-app .tlc-child-tab-add:hover {
    border-color: var(--tlc-primary) !important;
    color: var(--tlc-primary) !important;
    background: rgba(var(--tlc-primary-rgb), 0.05) !important;
}

/* Child tab — inactive */
.tlc-app .tlc-child-tab:not(.active) {
    background: var(--tlc-white) !important;
    color: var(--tlc-gray-500) !important;
    border: 1px solid var(--tlc-gray-200) !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Child tab — active */
.tlc-app .tlc-child-tab.active {
    background: var(--tlc-brand) !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

/* Delete/clear button (inside dashboard card header) */
.tlc-app .tlc-delete-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid transparent !important;
    color: var(--tlc-gray-400) !important;
    outline: none !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
}
.tlc-app .tlc-delete-btn.has-selection {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
.tlc-app .tlc-delete-btn.has-selection:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: white !important;
}

/* ========== FEEDBACK & REVIEWS TAB (v2.7.0) ========== */
.tlc-feedback-wrapper { padding: 0 0 80px; }
.tlc-feedback-subtabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tlc-feedback-subtab {
    padding: 8px 18px; border-radius: 20px; border: 2px solid var(--tlc-primary);
    background: transparent; color: var(--tlc-primary); font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.tlc-feedback-subtab.active {
    background: var(--tlc-primary); color: white;
}
.tlc-feedback-subtab-content { display: none; }
.tlc-feedback-subtab-content.active { display: block; }

.tlc-feedback-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--tlc-body-text); }
.tlc-feedback-section-desc  { font-size: .88rem; color: var(--tlc-muted-text); margin-bottom: 18px; }
.tlc-feedback-empty { text-align: center; color: var(--tlc-muted-text); padding: 24px 0; }

/* Feedback form */
.tlc-feedback-form { display: flex; flex-direction: column; gap: 16px; }
.tlc-feedback-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--tlc-body-text); }
.tlc-feedback-select,
.tlc-feedback-input,
.tlc-feedback-textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: .9rem; background: var(--tlc-white); color: var(--tlc-body-text);
    box-sizing: border-box; transition: border-color .2s;
}
.tlc-feedback-select:focus,
.tlc-feedback-input:focus,
.tlc-feedback-textarea:focus { outline: none; border-color: var(--tlc-primary); }
.tlc-btn-feedback-submit {
    padding: 12px 24px; background: var(--tlc-primary); color: white;
    border: none; border-radius: 10px; font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: background .2s; align-self: flex-start;
}
.tlc-btn-feedback-submit:hover { background: var(--tlc-primary-dark); }
.tlc-btn-feedback-submit:disabled { opacity: .5; cursor: default; }
.tlc-feedback-result { padding: 10px 14px; border-radius: 8px; margin-top: 4px; font-size: .9rem; }
.tlc-feedback-success { background: #dcfce7; color: #16a34a; }
.tlc-feedback-error   { background: #fee2e2; color: #dc2626; }

/* Rate orders list */
.tlc-rate-order-row {
    background: var(--tlc-white); border: 1.5px solid #e5e7eb; border-radius: 14px;
    padding: 14px 16px; margin-bottom: 12px;
}
.tlc-rate-order-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tlc-rate-order-date  { font-weight: 700; font-size: .9rem; color: var(--tlc-primary); }
.tlc-rate-order-name  { flex: 1; font-size: .88rem; color: var(--tlc-body-text); }
.tlc-rate-order-child { font-size: .8rem; color: var(--tlc-muted-text); }
.tlc-review-saved-badge { color: #22c55e; font-size: 1rem; }

/* Stars */
.tlc-star-widget { display: flex; gap: 4px; margin-bottom: 10px; }
.tlc-star-btn {
    font-size: 1.6rem; background: transparent; border: none; cursor: pointer;
    color: #d1d5db; transition: color .15s, transform .1s; line-height: 1; padding: 0;
}
.tlc-star-btn.active, .tlc-star-btn:hover { color: #f59e0b; transform: scale(1.1); }

/* Review comment + footer */
.tlc-review-comment {
    width: 100%; padding: 8px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: .85rem; resize: vertical; box-sizing: border-box;
    background: var(--tlc-white); color: var(--tlc-body-text); margin-bottom: 10px;
}
.tlc-review-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tlc-review-public-label { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--tlc-muted-text); cursor: pointer; }
.tlc-review-submit-btn {
    padding: 8px 20px; background: var(--tlc-primary); color: white;
    border: none; border-radius: 8px; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.tlc-review-submit-btn:hover { background: var(--tlc-primary-dark); }
.tlc-review-submit-btn:disabled { opacity: .5; cursor: default; }

/* [tlc_reviews] public widget */
.tlc-reviews-widget { font-family: 'Inter', sans-serif; }
.tlc-reviews-widget-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tlc-reviews-widget-title { font-size: 1.2rem; font-weight: 700; margin: 0; }
.tlc-reviews-widget-avg { display: flex; align-items: center; gap: 8px; }
.tlc-reviews-widget-avg-num { font-size: 2rem; font-weight: 900; color: #f59e0b; }
.tlc-reviews-widget-stars { font-size: 1.4rem; color: #f59e0b; letter-spacing: 2px; }
.tlc-reviews-widget-count { font-size: .85rem; color: #6b7280; }
.tlc-reviews-widget-list { display: grid; gap: 16px; }
.tlc-reviews-widget-item {
    background: white; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.tlc-reviews-widget-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tlc-reviews-widget-item-stars .star.filled { color: #f59e0b; }
.tlc-reviews-widget-item-stars .star { color: #d1d5db; font-size: 1.1rem; }
.tlc-reviews-widget-item-name  { font-weight: 600; font-size: .9rem; }
.tlc-reviews-widget-item-date  { font-size: .8rem; color: #6b7280; margin-left: auto; }
.tlc-reviews-widget-item-comment { margin: 0 0 6px; font-size: .9rem; color: #374151; }
.tlc-reviews-widget-item-menu { margin: 0; font-size: .8rem; color: #6b7280; }
