* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFF0EB;
    --secondary: #2D3436;
    --success: #00B894;
    --whatsapp: #25D366;
    --phone: #3498DB;
    --bg: #F5F6FA;
    --card: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 12px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 30px;
}

/* Install Banner */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    padding: 10px 16px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.install-banner.hidden { display: none; }

.install-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
}

.install-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.close-install {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Header */
.header {
    position: relative;
    padding: 50px 20px 30px;
    text-align: center;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 0 0 40px 40px;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    background: white;
}

.restaurant-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 12px;
}

.tagline {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-top: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 16px;
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.status-badge.closed .status-dot {
    background: #E74C3C;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Action Button */
.main-action {
    padding: 0 20px;
    margin-top: -10px;
    position: relative;
    z-index: 2;
}

.order-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: #27AE60;
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(39,174,96,0.4);
    transition: all 0.3s ease;
}

.order-btn:active {
    transform: scale(0.98);
}

.order-icon {
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.order-text strong {
    font-size: 1.1rem;
}

.order-text small {
    opacity: 0.85;
    font-size: 0.8rem;
}

.order-arrow {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Quick Actions Grid */
.quick-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 24px 20px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:active {
    transform: scale(0.95);
}

.quick-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.quick-btn.whatsapp .quick-icon {
    background: #E8F8EE;
}

/* Info Section */
.info-section {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
}

.info-icon {
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-content strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.info-content span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.info-arrow {
    font-size: 1.4rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 24px 20px;
}

.contact-section h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-btn:active {
    transform: scale(0.97);
}

.contact-btn.phone {
    background: var(--phone);
}

.contact-btn.whatsapp {
    background: var(--whatsapp);
}

.contact-icon {
    font-size: 1.2rem;
}

/* Share Section */
.share-section {
    padding: 0 20px 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: var(--card);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:active {
    background: var(--primary-light);
    transform: scale(0.98);
}

.share-icon {
    width: 20px;
    height: 20px;
}

/* Social Section */
.social-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 20px 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:active {
    transform: scale(0.95);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.facebook {
    background: #1877F2;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px 180px;
    color: var(--text-light);
    font-size: 0.8rem;
}

.footer p:first-child {
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--bg);
}

.modal-header h2 {
    font-size: 1.1rem;
}

.modal-close {
    background: var(--bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Horário List */
.horario-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: 10px;
}

.horario-item.hoje {
    background: var(--primary);
    color: white;
}

.horario-dia {
    font-weight: 600;
    font-size: 0.9rem;
}

.horario-hora {
    color: var(--text-light);
    font-size: 0.9rem;
}

.horario-item.hoje .horario-hora {
    color: rgba(255,255,255,0.9);
}

/* iOS Instructions */
.ios-instructions p {
    padding: 14px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-align: center;
}

/* Safe area */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: calc(50px + env(safe-area-inset-top));
    }
    body {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* Small screens */
@media (max-width: 360px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .restaurant-name {
        font-size: 1.3rem;
    }
}
