:root {
    --primary-burgundy: #800020;
    --primary-burgundy-gradient: linear-gradient(135deg, #4a0012 0%, #800020 50%, #2b000a 100%);
    --primary-blue-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #030712 100%);
    --accent-glow: rgba(128, 0, 32, 0.15);
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --card-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.04), 0 3px 8px -2px rgba(0, 0, 0, 0.02);
    --btn-shadow: 0 8px 20px rgba(128, 0, 32, 0.12);
    --btn-blue-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
    --border-radius-lg: 20px;
    --border-radius-md: 14px;
    --tech-blue-bg: #f0f4f9;
    --tech-blue-icon: #2563eb;
    --tech-blue-glow: rgba(37, 99, 235, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.2px;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-light);
}

body {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.app-view {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.bg-wave {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
}
.bg-wave-top {
    top: 0;
    height: 12vh;
    min-height: 80px;
}
.bg-wave-bottom {
    bottom: 0;
    height: 10vh;
    min-height: 70px;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    background-color: transparent;
    padding: calc(12px + env(safe-area-inset-top)) 16px calc(90px + env(safe-area-inset-bottom)) 16px;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-content::-webkit-scrollbar { 
    display: none; 
}

.header-top-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    margin-top: 2px;
}

.download-banner {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apk-icon-box {
    width: 22px;
    height: 22px;
    background: #ffffff;
    color: var(--primary-burgundy);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apk-icon-box svg {
    width: 12px;
    height: 12px;
}

.download-text-main {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
}

.download-text-sub {
    font-size: 8.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0px;
    font-weight: 500;
}

.download-action-btn {
    background: #ffffff;
    color: var(--primary-burgundy);
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    outline: none;
}

.download-action-btn:active {
    transform: scale(0.95);
}

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 12px;
    gap: 10px;
    width: 100%;
}

.logo-image { 
    width: 90px; 
    height: 90px; 
    object-fit: contain; 
    border-radius: 22px;
    color: transparent; 
    filter: blur(12px);
    background-color: rgba(128, 0, 32, 0.05);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px -4px rgba(0,0,0,0.06);
}

.logo-image.loaded {
    filter: blur(0) !important;
    background-color: transparent;
}

.logo-image.img-error {
    filter: blur(0) !important;
    background-color: #e2e8f0;
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="90" height="90"><rect width="90" height="90" fill="%23f1f5f9"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="sans-serif" font-size="12" font-weight="bold" fill="%2394a3b8">BirrGo</text></svg>');
}

.welcome-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0;
}

.welcome-title .brand-name {
    color: var(--primary-burgundy);
}

.main-body-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    flex-shrink: 0;
    background-color: var(--tech-blue-bg);
    color: var(--tech-blue-icon);
    box-shadow: 0 4px 10px var(--tech-blue-glow);
}

.feature-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.feature-desc {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 6px;
    flex-grow: 1;
    font-weight: 500;
}

.indicator-dash {
    width: 12px;
    height: 2.5px;
    border-radius: 2px;
    margin-top: auto;
    background-color: var(--tech-blue-icon);
}

.action-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 6px;
}

.btn {
    width: 100%;
    height: 46px;
    border-radius: 100px;
    font-size: 12.5px; 
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.btn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

.btn svg {
    z-index: 2;
}

@keyframes premium-shine {
    0% { left: -60%; }
    15%, 100% { left: 140%; }
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: premium-shine 3.5s infinite ease-in-out;
    z-index: 1;
}

.btn-primary { 
    background: var(--primary-burgundy-gradient); 
    color: #ffffff; 
    box-shadow: var(--btn-shadow); 
}

.btn-primary .btn-icon-wrapper {
    color: var(--primary-burgundy);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.btn-secondary { 
    background: var(--primary-blue-gradient); 
    color: #ffffff; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--btn-blue-shadow); 
}

.btn-secondary .btn-icon-wrapper {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.brand-section .btn-secondary {
    margin-top: 4px;
    margin-bottom: 0px;
}

/* UPDATED FOOTER STYLES */
.footer-area { 
    position: absolute;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px; /* Tight gap to pull footer links close to copyright */
    z-index: 5;
    padding: 0 16px;
}

.footer-links { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 6px; 
    font-size: 9.5px;
    color: #ffffff; 
    font-weight: 700; 
    text-align: center; 
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a.highlight {
    text-decoration: underline;
    font-weight: 800;
}

.footer-icon { 
    color: var(--primary-burgundy); 
    background: #ffffff; 
    padding: 3.5px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}

.divider {
    color: rgba(255, 255, 255, 0.4);
}

.copyright-text {
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    opacity: 0.9;
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    padding: 28px 24px calc(24px + env(safe-area-inset-bottom)) 24px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    animation: slideUp 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
    box-sizing: border-box;
    text-align: center;
}

.modal-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 500;
}

.modal-btn {
    width: 100%;
    height: 42px;
    background: var(--primary-burgundy-gradient);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    outline: none;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}
