:root {
            --primary: #4E797C;
            --background: #FAF4F2;
            --surface: #ffffff;
            --text: #333333;
            --border: #ddd;
            --sage: #C4C4A3;
            --accent: #A96D6D;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--background);
            color: var(--text);
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        .container {
            background-color: var(--surface);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
            position: relative;
        }

        h1, h2 {
            text-align: center;
            color: var(--primary);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }

        h2.screen-subtitle {
            font-size: 1.1rem;
            font-weight: 500;
            margin-top: -1rem;
            margin-bottom: 1.2rem;
            color: #666;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 1rem;
            box-sizing: border-box;
        }

        input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
        }

        button {
            width: 100%;
            padding: 0.75rem;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s;
            margin-bottom: 0.5rem;
        }

        button:hover {
            background-color: #3D6163;
        }

        button.secondary {
            background-color: #9e9e9e;
        }
        button.secondary:hover {
            background-color: #757575;
        }

        /* Screens */
        .screen {
            display: none;
        }
        .screen.active {
            display: block;
        }

        /* Feedback Messages */
        .feedback-message {
            padding: 1rem;
            border-radius: 6px;
            margin-bottom: 1rem;
            font-weight: 500;
            text-align: center;
        }
        .feedback-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .feedback-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        /* Stepper Visual */
        .stepper {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2rem;
            background-color: #f1f1f1;
            border-radius: 8px;
            overflow: hidden;
        }
        .step {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: #888;
            background-color: #e0e0e0;
            transition: all 0.3s ease;
        }
        .step.active {
            background-color: var(--primary);
            color: white;
        }

        /* Form Sections */
        .form-section {
            display: none;
        }
        .form-section.active {
            display: block;
        }
        .form-actions {
            display: flex;
            gap: 10px;
            margin-top: 1.5rem;
        }
        .form-actions button {
            margin-bottom: 0;
        }

        /* Order Summary Fixed */
        .order-summary {
            background-color: var(--background);
            border: 2px solid #EED5D4;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .summary-details {
            display: flex;
            flex-direction: column;
        }
        #summary-services {
            font-weight: 600;
            color: var(--primary);
        }
        #summary-time {
            color: #666;
            font-size: 0.85rem;
        }
        .summary-price {
            font-size: 1.25rem;
            font-weight: bold;
            color: var(--primary);
        }

        .services-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        @media (min-width: 600px) {
            .services-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        .slots-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin: 10px auto 0;
            max-width: 760px;
        }
        .empty-slots-msg {
            grid-column: 1/-1;
            text-align: center;
            color: #666;
            font-size: 0.9rem;
        }

        /* Menu Buttons */
        .menu-btn {
            display: block;
            width: 100%;
            padding: 1.5rem;
            margin-bottom: 1rem;
            font-size: 1.2rem;
            text-align: center;
        }

        .menu-btn.btn-accent {
            background-color: var(--accent);
            color: #ffffff;
        }

        .menu-btn.btn-accent:hover {
            background-color: #8E5A5A;
        }

        /* Status Badge */
        .status-badge {
            display: inline-block;
            padding: 0.5rem 1rem;
            background-color: #e0e0e0;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9rem;
            margin-top: 5px;
        }
        .status-agendado { background-color: #e0e0e0; color: #616161; }
        .status-fila { background-color: #EED5D4; color: #C49595; }
        .status-banho { background-color: #A2BABD; color: #333333; }
        .status-secando { background-color: #C4C4A3; color: #333333; }
        .status-pronto { background-color: #C4C4A3; color: #333333; }

        .card-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        .btn-small {
            padding: 0.5rem;
            font-size: 0.9rem;
            margin: 0;
        }
        .btn-cancel {
            background-color: #f44336;
        }
        .btn-cancel:hover {
            background-color: #d32f2f;
        }
        .btn-edit {
            background-color: #2196F3;
        }
        .btn-edit:hover {
            background-color: #1976D2;
        }

        .custom-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 1rem;
            box-sizing: border-box;
        }

        .custom-modal-content {
            width: min(460px, 100%);
            background: #fff;
            border-radius: 12px;
            padding: 1.25rem;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
        }

        .custom-modal-message {
            margin: 0 0 1rem;
            text-align: center;
            color: #333;
            font-weight: 500;
        }

        .custom-modal-buttons {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
        }

        .custom-modal-btn {
            width: auto;
            min-width: 110px;
            margin: 0;
            padding: 0.7rem 1rem;
        }

        .btn-teal {
            background-color: var(--primary);
            color: #fff;
        }

        .btn-gray {
            background-color: #9e9e9e;
            color: #fff;
        }

        .btn-red {
            background-color: #d84b4b;
            color: #fff;
        }

        /* Time Slots Grid */
        /* Removed old #slots-container styles in favor of .slots-grid */

        .slot-btn {
            padding: 0.65rem 0.4rem;
            min-height: 44px;
            border: 1px solid var(--primary);
            background-color: white;
            color: var(--primary);
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            font-size: 0.9rem;
            transition: all 0.2s;
            margin-bottom: 0;
        }

        .slot-btn:hover:not(:disabled) {
            background-color: #EED5D4;
        }

        .slot-btn.selected {
            background-color: var(--primary);
            color: white;
        }

        .slot-btn:disabled {
            background-color: #e0e0e0;
            color: #9e9e9e;
            border-color: #bdbdbd;
            cursor: not-allowed;
            text-decoration: line-through;
        }

        /* Vitrine de Pacotes */
        .btn-tab-porte {
            flex: 1;
            padding: 0.75rem;
            background-color: transparent;
            color: #666;
            border: 2px solid transparent;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            max-width: 150px;
        }
        .btn-tab-porte.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        .pacote-card {
            background-color: var(--background);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 0 1.5rem 1.5rem 1.5rem;
            width: 100%;
            max-width: 280px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
            position: relative;
            box-sizing: border-box;
            margin-top: 40px; /* Space for the image */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .pacote-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        }

        .pacote-card-img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin: -40px auto 10px auto;
            border: 4px solid white;
            position: relative;
            z-index: 2;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            background-color: var(--background);
        }
        .pacote-card.featured {
            border-color: var(--primary);
            box-shadow: 0 12px 24px rgba(78, 121, 124, 0.25);
            border-width: 2px;
        }
        .pacote-card.premium-card {
            border-color: #d4af37;
            box-shadow: 0 12px 24px rgba(212, 175, 55, 0.25);
            border-width: 2px;
        }
        .pacote-card-header {
            font-size: 1.25rem;
            font-weight: bold;
            color: white;
            background-color: var(--primary);
            text-align: center;
            margin: 0 -1.5rem 1rem -1.5rem;
            padding: 40px 1.5rem 1rem 1.5rem; /* Extra top padding to fit behind image */
            position: relative;
            z-index: 1;
            border-top-left-radius: 14px;
            border-top-right-radius: 14px;
        }

        .pacote-card-header.plano-12 {
            background-color: #C49595; /* Old Rose */
        }

        .pacote-card.premium-card .pacote-card-header {
            background-color: #2a4d50; /* Darker Teal / Verde Petróleo Escuro */
            border-bottom: 2px solid #d4af37; /* Subtle gold border */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .badge-premium {
            position: absolute;
            top: 10px;
            right: -10px;
            background-color: #d4af37;
            color: #fff;
            padding: 4px 12px;
            font-size: 0.75rem;
            font-weight: bold;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            z-index: 3;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-premium::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 0;
            border-width: 5px 5px 0 0;
            border-style: solid;
            border-color: #a3862b transparent transparent transparent;
        }
        .pacote-discount-badge {
            background-color: rgba(196, 149, 149, 0.1);
            color: #C49595;
            font-size: 0.85rem;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 20px;
            text-align: center;
            align-self: center;
            margin-bottom: 0.5rem;
        }

        .pacote-card-price {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary);
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .pacote-validity-text {
            font-size: 0.8em;
            text-decoration: underline;
            color: #888;
            text-align: center;
            margin-top: 1rem;
        }
        .pacote-card-list {
            list-style: none;
            padding: 0;
            margin: 0;
            flex-grow: 1;
            font-size: 0.95rem;
            color: #555;
            margin-bottom: 1.5rem;
        }
        .pacote-card-list li {
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .pacote-badge {
            font-size: 0.75rem;
            font-weight: 700;
            text-align: center;
            padding: 0.5rem;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .pacote-badge.individual {
            background-color: #f1f5f9;
            color: #475569;
        }
        .pacote-badge.shared {
            background-color: #dcfce7;
            color: #166534; /* Green */
        }

        /* Extra Chips */
        .extra-chip {
            background-color: #F0E5E1; /* Levemente creme */
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
            transition: transform 0.2s, box-shadow 0.2s;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .extra-chip-label {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .extra-icon-svg {
            width: 18px;
            height: 18px;
            fill: #C49595; /* Old Rose */
            flex-shrink: 0;
        }

        .check-icon-svg {
            width: 16px;
            height: 16px;
            fill: var(--primary); /* Verde petróleo */
            flex-shrink: 0;
        }
        .extra-chip:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
            border-color: var(--primary);
        }

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

        .animate-fade-up {
            animation: fadeUp 0.4s ease-out forwards;
        }

        /* My Pets List */
        .pet-card {
            background: #f9f9f9;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
        }
        .pet-card h3 {
            margin: 0 0 0.5rem 0;
            color: var(--primary);
        }
        .pet-card p {
            margin: 0.25rem 0;
            font-size: 0.95rem;
            color: #555;
        }

        .history-section-title {
            margin: 2rem 0 1rem 0;
            font-size: 1.1rem;
            color: #666;
            border-bottom: 1px solid #eee;
            padding-bottom: 0.5rem;
        }

        .pet-card.history-item {
            opacity: 0.8;
            background-color: #f0f0f0;
        }
        .pet-card.history-item h3 {
            color: #555;
            font-size: 1rem;
        }
        .status-concluido { background-color: var(--primary); color: white; }
        .status-cancelado { background-color: #9e9e9e; color: white; }

        select,
        textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 1rem;
            box-sizing: border-box;
            background-color: white;
            font-family: inherit;
        }

        .brand-header {
            text-align: center;
            margin-bottom: 1rem;
            display: flex;
            justify-content: center;
        }

        .logo-slot {
            width: 100%;
            border: none;
            border-radius: 0;
            padding: 0.25rem 0 0.5rem;
            background: transparent;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .logo-slot small {
            display: block;
            color: #6f8081;
            font-weight: 400;
            margin-top: 0.25rem;
        }

        .brand-logo {
            max-width: 170px;
            width: 100%;
            max-height: 78px;
            object-fit: contain;
            display: block;
            margin: 0 auto;
        }

        .logo-placeholder {
            color: #4e797c;
            font-weight: 600;
            font-size: 0.95rem;
            text-align: center;
        }

        .screen-description {
            text-align: center;
            color: #666;
            margin: -0.6rem 0 1.2rem;
            font-size: 0.95rem;
        }

        /* Services Table */
        .services-table {
            width: 100%;
            border-collapse: collapse;
            background-color: var(--surface);
            font-size: 0.95rem;
        }

        .services-table th {
            background-color: var(--primary);
            color: white;
            text-align: left;
            padding: 1rem;
            font-weight: 600;
        }

        .services-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
            vertical-align: top;
        }

        .services-table tbody tr:nth-child(even) {
            background-color: var(--surface);
        }

        .services-table tbody tr:nth-child(odd) {
            background-color: var(--background);
        }

        #services-description-screen {
            max-width: 900px !important;
        }

        @media (max-width: 600px) {
            body {
                padding: 8px;
                align-items: flex-start;
            }

            .container {
                padding: 1rem;
                border-radius: 10px;
                min-height: calc(100vh - 16px);
                box-shadow: none;
            }

            h1, h2 {
                font-size: 1.3rem;
                margin-bottom: 1rem;
            }

            .menu-btn {
                padding: 1rem;
                font-size: 1rem;
            }

            .slots-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .step {
                font-size: 0.75rem;
                padding: 0.5rem;
            }
            .order-summary {
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }
        }

        @media (min-width: 900px) {
            .container {
                max-width: 860px;
                padding: 2.5rem;
            }

            .form-section {
                display: none;
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }
            .form-section.active {
                display: grid;
            }

            .form-section > .full-row {
                grid-column: 1 / -1;
            }

            #services-container {
                grid-template-columns: repeat(3, 1fr) !important;
            }

            .slots-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        button:disabled {
            background-color: #e0e0e0 !important;
            color: #9e9e9e !important;
            cursor: not-allowed !important;
            opacity: 0.7;
        }
