/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0F0F1A;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header & Navbar */
header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar h1 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    white-space: nowrap;
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar nav a:hover {
    color: #ff8a00;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(229, 46, 113, 0.15), transparent 50%);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: #a0a0b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Social Links Section */
.social-links-section {
    padding: 3rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(15, 15, 26, 0.8), #0F0F1A), 
                linear-gradient(180deg, rgba(229, 46, 113, 0.05), transparent);
}

.social-links-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.social-btn {
    display: block;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    background: #1A1A2E;
    background-clip: padding-box;
    border: solid 2px transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(90deg, #ff8a00, #e52e71); /* Fallback */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.3s ease;
}

.social-btn.tg-channel::before, .social-btn.tg-bot::before {
    background: linear-gradient(90deg, #0088cc, #005580);
}

.social-btn.wa-group::before {
    background: linear-gradient(90deg, #25D366, #128C7E);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.02);
    color: #ffffff;
}

.social-btn.tg-channel:hover, .social-btn.tg-bot:hover {
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.4);
    background: linear-gradient(90deg, #0088cc, #005580);
}

.social-btn.wa-group:hover {
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(90deg, #25D366, #128C7E);
}

/* App Grid Section */
.app-grid-section {
    padding: 2rem 2rem 5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
    }

    .navbar nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .navbar nav.active {
        display: flex;
        animation: slideDown 0.3s ease-in-out forwards;
    }

    .navbar nav a {
        margin: 0;
        padding: 1.2rem 2rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar nav a:last-child {
        border-bottom: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Card Style */
.app-card {
    background: #1A1A2E;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(229, 46, 113, 0.15);
    border-color: rgba(229, 46, 113, 0.3);
}

.app-card img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: #0F0F1A;
}

.app-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #e2e2ec;
}

/* Button with Gradient Border & Animation */
.btn {
    margin-top: auto;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    background: #1A1A2E; /* Match card bg */
    background-clip: padding-box;
    border: solid 2px transparent;
    transition: all 0.3s ease;
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn:hover {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    box-shadow: 0 0 15px rgba(229, 46, 113, 0.5);
    color: #fff;
    transform: scale(1.05); /* Hover animation requested */
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #12121E;
}

.footer-links, .footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a, .footer-social a {
    color: #a0a0b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: #ff8a00;
}

footer p {
    color: #6a6a8c;
    margin-top: 2rem;
}

/* Promo Code Submit Page Styles */
.submit-container {
    width: 100%;
    max-width: 500px;
    background: #1A1A2E;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease;
    margin: 4rem auto; /* Added margin for standalone page layout */
}

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

.submit-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e2ec;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #e52e71;
    box-shadow: 0 0 10px rgba(229, 46, 113, 0.3);
}

/* Custom File Upload */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 15, 26, 0.5);
}

.file-upload:hover {
    border-color: #ff8a00;
    background: rgba(26, 26, 46, 0.8);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload span {
    color: #a0a0b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 1rem;
    border-radius: 10px;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Button style */
.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 46, 113, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    background: #333;
    color: #999;
}

#response-msg {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

#response-msg.success {
    background: rgba(37, 211, 102, 0.2);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.4);
    display: block;
}

#response-msg.error {
    background: rgba(229, 46, 113, 0.2);
    color: #ff4d4d;
    border: 1px solid rgba(229, 46, 113, 0.4);
    display: block;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #a0a0b8;
    text-decoration: none;
    transition: color 0.3s;
}
.back-link:hover {
    color: #fff;
}

/* Legal Pages Styling */
.page-container {
    max-width: 800px;
    margin: 8rem auto 3rem auto;
    padding: 2.5rem;
    background: #1A1A2E;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.page-container h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.page-container p, .page-container ul {
    color: #e2e2ec;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.page-container ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.page-container li {
    margin-bottom: 0.5rem;
}

.page-container a.text-link {
    color: #ff8a00;
    text-decoration: none;
    font-weight: 600;
}

.page-container a.text-link:hover {
    text-decoration: underline;
}

.support-banner {
    background: rgba(229, 46, 113, 0.05);
    border: 1px solid rgba(229, 46, 113, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.support-banner p {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #fff;
    font-size: 1.2rem;
}

/* ========================================
   App Detail Page Styles
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    font-size: 0.85rem;
}
.breadcrumb .container {
    max-width: 900px;
    margin: 0 auto;
}
.breadcrumb a {
    color: #ff8a00;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: #666;
    margin: 0 8px;
}
.breadcrumb .current {
    color: #aaa;
}

/* Detail Hero */
.app-detail-hero {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 100px 20px 50px;
    text-align: center;
}
.app-detail-hero img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}
.app-detail-hero h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}
.app-detail-hero .tagline {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Hero Button */
.download-hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(229,46,113,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-btn 2s infinite;
}
.download-hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(229,46,113,0.6);
    color: #fff;
}
@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 4px 20px rgba(229,46,113,0.4); }
    50% { box-shadow: 0 4px 30px rgba(229,46,113,0.7); }
}

/* App Info Table Section */
.app-info-section {
    background: #1a1a2e;
    padding: 40px 20px;
}
.app-info-section .container {
    max-width: 900px;
    margin: 0 auto;
}
.app-info-section h2 {
    color: #ff8a00;
    margin-bottom: 20px;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}
.info-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.info-table tr:last-child {
    border-bottom: none;
}
.info-table td {
    padding: 14px 20px;
    color: #ccc;
    font-size: 0.95rem;
}
.info-table td:first-child {
    font-weight: 600;
    color: #ff8a00;
    width: 40%;
}

/* Content Section */
.content-section {
    background: #16213e;
    padding: 50px 20px;
}
.content-section .container {
    max-width: 900px;
    margin: 0 auto;
}
.content-section h2 {
    color: #ff8a00;
    font-size: 1.5rem;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,138,0,0.2);
}
.content-section h2:first-child {
    margin-top: 0;
}
.content-section p,
.content-section li {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.8;
}
.content-section ul {
    padding-left: 20px;
    margin: 10px 0;
}
.content-section li {
    margin-bottom: 8px;
}
.content-section a {
    color: #ff8a00;
    text-decoration: none;
}
.content-section a:hover {
    text-decoration: underline;
}

/* Step Boxes */
.step-box {
    background: rgba(255,255,255,0.03);
    border-left: 4px solid #ff8a00;
    padding: 15px 20px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
}
.step-box strong {
    color: #ff8a00;
}
.step-box p {
    margin: 5px 0 0;
    color: #bbb;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #302b63, #24243e);
    border: 1px solid rgba(255,138,0,0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}
.cta-box h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.cta-box p {
    color: #aaa;
    margin-bottom: 20px;
}

/* Disclaimer Box */
.disclaimer-box {
    background: rgba(255,0,0,0.05);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}
.disclaimer-box h3 {
    color: #ff4444;
    margin-bottom: 10px;
    font-size: 1rem;
}
.disclaimer-box p,
.disclaimer-box li {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: #1a1a2e;
    padding: 50px 20px;
}
.faq-section .container {
    max-width: 900px;
    margin: 0 auto;
}
.faq-section h2 {
    color: #ff8a00;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}
.faq-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 16px 20px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.faq-question:hover {
    background: rgba(255,138,0,0.1);
}
.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    color: #ff8a00;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}
.faq-item.active .faq-question::after {
    content: "−";
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 20px;
    color: #bbb;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 16px;
}

/* Related Section */
.related-section {
    background: #16213e;
    padding: 50px 20px;
}
.related-section .container {
    max-width: 1100px;
    margin: 0 auto;
}
.related-section h2 {
    color: #ff8a00;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

/* Detail Page Link in App Card */
.app-card .detail-link {
    display: block;
    color: #ff8a00;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 500;
    transition: color 0.3s;
}
.app-card .detail-link:hover {
    color: #e52e71;
    text-decoration: underline;
}

/* Mobile Responsive for Detail Pages */
@media (max-width: 768px) {
    .app-detail-hero {
        padding: 80px 15px 40px;
    }
    .app-detail-hero h1 {
        font-size: 1.5rem;
    }
    .app-detail-hero img {
        width: 90px;
        height: 90px;
    }
    .download-hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .info-table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .info-table td:first-child {
        width: 45%;
    }
    .content-section h2 {
        font-size: 1.25rem;
    }
    .cta-box {
        padding: 20px;
    }
}
