:root {
    --primary-glow: #00f2fe;
    --secondary-glow: #4facfe;
    --accent-glow: #ff00ff;
    --bg-dark: #0a0e14;
    --panel-bg: rgba(20, 25, 35, 0.7);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.3);
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden; /* Mobile app feel */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at top right, rgba(79, 172, 254, 0.1), transparent),
                      radial-gradient(circle at bottom left, rgba(255, 0, 255, 0.05), transparent);
}

.app-container {
    width: 100%;
    max-width: 480px; /* Max mobile width */
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 32px;
}

/* Header Styling */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 20px;
    background: var(--panel-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 600;
}

.logo h1 span {
    color: var(--primary-glow);
    text-shadow: 0 0 10px var(--primary-glow);
}

.icon-glow {
    color: var(--primary-glow);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.upload-hint {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    margin-right: 4px;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Main Content area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.progress-ring {
    font-family: var(--font-header);
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-glow);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 254, 0.2);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-name {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-phone {
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* Action Buttons Area */
.dialer-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
}

.action-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.main-call-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: white;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-call-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.6);
}

.main-call-btn:active {
    transform: scale(0.95);
}

.main-call-btn:disabled {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    box-shadow: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.main-call-btn i {
    width: 38px !important;
    height: 38px !important;
}

/* Progress area below */
.status-panel {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    border-radius: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.status-item .value {
    color: var(--primary-glow);
    font-weight: 500;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-glow), var(--secondary-glow));
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.5s ease;
}

/* Footer */
.footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

/* Horizontal (Landscape) Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    body {
        overflow-y: auto; /* Allow scrolling if screen is too small */
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
    }

    .app-container {
        max-width: 100%;
        height: auto;
        gap: 16px;
        padding: 12px;
    }

    .glass-header {
        padding: 8px 16px;
    }

    main {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .contact-card {
        padding: 20px 16px !important;
        height: 100%;
        justify-content: center;
    }

    .contact-info {
        margin-bottom: 20px;
    }

    .contact-name {
        font-size: 1.5rem !important;
    }

    .contact-phone {
        font-size: 1rem !important;
    }

    .main-call-btn {
        width: 70px !important;
        height: 70px !important;
    }

    .action-btn {
        width: 50px !important;
        height: 50px !important;
    }

    .status-panel {
        padding: 12px 16px !important;
    }

    .footer-ad-container {
        margin-top: 0;
        padding: 8px 12px !important;
    }

    .ad-placeholder {
        height: 45px;
        font-size: 0.7rem;
    }

    .footer-note {
        margin-top: 10px;
    }
}

/* Compliance & Donation Styles */
.section-info {
    text-align: left !important;
    align-items: flex-start !important;
    padding: 24px !important;
    gap: 12px !important;
    margin-top: 20px;
}

.section-info h3 {
    font-family: var(--font-header);
    color: var(--primary-glow);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.section-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.donation-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    width: 100%;
}

.donation-info p {
    margin-bottom: 6px;
}

.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-glow);
}

/* Ad Styles */
.footer-ad-container {
    padding: 10px 16px !important;
    border-radius: 12px !important;
    margin-top: auto;
    position: relative;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.ad-label {
    position: absolute;
    top: -8px;
    left: 16px;
    background: var(--bg-dark);
    padding: 0 6px;
    font-size: 0.6rem;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.ad-placeholder {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    border: 1px dashed var(--glass-border);
}

/* Ad Overlay (Interstitial) */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.ad-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ad-modal {
    width: 90%;
    max-width: 400px;
    padding: 24px !important;
    gap: 20px;
}

.ad-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
}

.close-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--text-dim);
    gap: 12px;
}

.play-icon {
    width: 50px !important;
    height: 50px !important;
    color: var(--primary-glow);
    filter: drop-shadow(0 0 10px var(--primary-glow));
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    animation: adPulse 2s infinite;
}

@keyframes adPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ad-footer {
    font-size: 0.8rem;
    color: var(--text-dim);
}
