/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --accent: #f97316;
    --success: #10b981;
    --warning: #f59e0b;
    --light-bg: #f8fafc;
    --border-light: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.05);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER & LOGO ===== */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(145deg, var(--primary) 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.logo-fallback span {
    color: #ffd966;
    margin-left: 2px;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2.5rem 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 1.5rem;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.hero h2 span {
    color: #fbbf24;
}

.hero p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat i {
    color: var(--accent);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.section-header i {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 8px;
    border-radius: 14px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ===== FAQ CARDS ===== */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 2.5rem;
}

.faq-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}

.faq-card:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 32px;
    text-align: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

.faq-answer {
    padding-left: 44px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-dark);
}

/* ===== SERVICE CARDS ===== */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.rate-badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
}

/* ===== DETAIL PAGE ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 1rem 0;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.detail-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.detail-header {
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-header i {
    font-size: 2rem;
    color: var(--primary);
}

.detail-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.rate-tag {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-body {
    padding: 20px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin: 18px 0;
    font-size: 0.95rem;
}

.info-box.green {
    background: #ecfdf5;
    border-left: 4px solid var(--success);
    color: #065f46;
}

.info-box.yellow {
    background: #fffbeb;
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.feature-list {
    list-style: none;
    margin: 16px 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--border-light);
}

.feature-list li i {
    color: var(--success);
    font-size: 1rem;
}

.download-section {
    margin-top: 24px;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 3rem;
    padding: 2rem 0 1rem;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid #334155;
}

.footer-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.footer-credit {
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 18px;
}

.footer-socials a {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: white;
}

.footer-bottom {
    max-width: 600px;
    margin: 1.5rem auto 0;
    padding: 1rem 16px 0;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.7rem;
    }
    .card-actions .btn {
        flex: 1;
    }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-right {
        align-items: flex-start;
    }
    .page-title {
        font-size: 1rem;
    }
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ===== LEGAL PAGES (Privacy / Terms) ===== */
.legal-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.legal-card h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.legal-card h2 i {
    color: var(--primary);
    font-size: 1.4rem;
}

.legal-card h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

.legal-list {
    list-style: none;
    margin: 0.75rem 0;
}

.legal-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-muted);
}

.legal-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.legal-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== CONTACT PAGE ===== */
.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, var(--primary) 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-sm);
}

.profile-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-title {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-bio p {
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.6;
}

.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.interest-tag {
    background: #f1f5f9;
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.interest-tag i {
    color: var(--primary);
}

.contact-methods {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-methods h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-item i {
    width: 24px;
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.contact-note i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-note p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== SERVICE LOGOS ===== */
.service-logo-link {
    display: block;
    margin-bottom: 12px;
    text-align: center;
}

.service-logo {
    width: auto;
    height: 48px;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.2s;
}

.service-logo:hover {
    transform: scale(1.05);
}

/* Detail page logo */
.detail-logo-link {
    margin-right: 8px;
}

.detail-logo {
    width: auto;
    height: 40px;
    max-width: 100px;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.2s;
}

.detail-logo:hover {
    transform: scale(1.05);
}

/* Adjust detail header for logo */
.detail-header {
    flex-wrap: wrap;
}