/* ==========================================================================
   COLOR PALETTE & CSS VARIABLES (DM FIRST DARK GREEN THEME)
   ========================================================================== */
:root {
    --bg-main: #f0fdf4; /* Soft mint/light green background */
    --bg-card: #ffffff;
    --bg-card-hover: #ecfdf5;
    --primary-green: #064e3b; /* Deep Forest Green */
    --electric-green: #10b981; /* Vibrant Emerald */
    --accent-green: #059669; /* Medium Emerald */
    --dark-green: #065f46; /* Dark Emerald */
    --green-light: #d1fae5; /* Very light green tint */
    --green-border: #a7f3d0; /* Soft green border */
    --text-main: #0f172a;
    --text-gray: #475569;
    --border-color: #e2e8f0;
    --gradient-green: linear-gradient(135deg, #34d399 0%, #10b981 50%, #047857 100%);
    --gradient-glow: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: var(--electric-green);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--green-border);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.logo-img {
    height: 44px;
    width: 44px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
    transition: transform 0.25s ease;
    object-fit: cover;
}

.logo-img:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.highlight {
    color: var(--electric-green);
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--electric-green);
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-login {
    background: transparent;
    border: 1.5px solid var(--electric-green);
    color: var(--electric-green);
}

.btn-login:hover {
    background: var(--green-light);
}

.btn-register {
    background: var(--gradient-green);
    color: #fff !important;
    border: none;
}

.btn-register:hover {
    background: var(--gradient-glow);
}

/* FLOATING BAR (MOBILE) */
.floating-bar {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 92%;
    max-width: 420px;
    display: none;
}

.float-btn {
    display: block;
    text-align: center;
    background: var(--gradient-green);
    color: #fff !important;
    padding: 14px;
    border-radius: 35px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    text-decoration: none !important;
    transition: transform 0.25s ease;
}

.float-btn:hover {
    transform: translateY(-2px);
}

/* CONTAINER */
.main-content {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* HERO SECTION */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--green-border);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.main-title {
    font-size: 2.3rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.intro-description {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 820px;
    margin: 0 auto 25px auto;
}

.badge {
    background: var(--green-light);
    color: var(--dark-green);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--green-border);
    font-size: 0.85rem;
    font-weight: 600;
}

/* LOGO GLOW */
.logo-hero-wrapper {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.logo-glow-card {
    background: var(--green-light);
    padding: 18px;
    border-radius: 24px;
    border: 2px solid var(--green-border);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-glow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.45);
}

.hero-app-logo {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

/* BUTTONS */
.hero-btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.cta-banner-btn {
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.register-glow {
    background: var(--gradient-green);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.register-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.login-glow {
    background: #ffffff;
    color: var(--electric-green) !important;
    border: 2px solid var(--electric-green);
}

.login-glow:hover {
    transform: translateY(-3px);
    background: var(--green-light);
}

.warning-box {
    background: #ecfdf5;
    border-left: 4px solid var(--electric-green);
    padding: 16px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--dark-green);
    margin-top: 20px;
}

.warning-box i {
    color: var(--electric-green);
    font-size: 1.3rem;
    margin-top: 2px;
}

/* CONTENT BLOCKS */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.section-banner {
    background: #f8fafc;
    color: var(--dark-green);
    padding: 14px 20px;
    border: 1px solid var(--green-border);
    border-left: 5px solid var(--electric-green);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-banner i {
    color: var(--electric-green);
}

/* TABLES */
.table-responsive {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--green-border);
}

.styled-table th, .styled-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.styled-table th {
    background: var(--green-light);
    color: var(--dark-green);
    font-weight: 700;
}

.styled-table td i {
    color: var(--electric-green);
    margin-right: 8px;
}

.invite-code {
    background: var(--green-light);
    color: var(--dark-green);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px dashed var(--electric-green);
}

/* GUIDES GRID */
.guide-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: center;
}

.guide-grid.reverse {
    grid-template-columns: 1fr 280px;
}

.mockup-frame {
    text-align: center;
    position: relative;
}

.placeholder-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    white-space: nowrap;
}

.phone-img {
    width: 100%;
    max-width: 270px;
    border-radius: 20px;
    border: 4px solid var(--green-light);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    background: #f1f5f9;
}

.phone-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.35);
}

.styled-steps {
    padding-left: 20px;
}

.styled-steps li {
    margin-bottom: 14px;
    color: var(--text-main);
}

/* APK CARD */
.apk-download-card {
    background: #ecfdf5;
    border: 1px solid var(--green-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.apk-icon {
    font-size: 2.4rem;
    color: var(--electric-green);
}

.btn-download {
    background: var(--gradient-green);
    color: white !important;
    margin-left: auto;
    border: none;
}

/* TELEGRAM CARD */
.telegram-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 2px dashed #0d9488;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.telegram-icon {
    font-size: 3.5rem;
    color: #0284c7;
    margin-bottom: 12px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0284c7;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 15px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.25s ease;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* WEB STORIES SECTION */
.webstories-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
    -webkit-overflow-scrolling: touch;
}

.ws-card {
    flex: 0 0 170px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--green-border);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    color: inherit;
}

.ws-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.ws-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
}

.ws-card p {
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    line-height: 1.3;
}

/* GIFT CODE BOX */
.giftcode-box {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.giftcode-box h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.giftcode-box p {
    color: #d1fae5;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 20px auto;
}

.gift-code-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 2px dashed #ffffff;
    padding: 12px 24px;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    word-break: break-all;
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--green-border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-header {
    width: 100%;
    padding: 16px 20px;
    background: #ecfdf5;
    border: none;
    color: var(--dark-green);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-body {
    padding: 16px 20px;
    color: var(--text-gray);
    font-size: 0.95rem;
    border-top: 1px solid var(--green-border);
}

/* FOOTER */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 20px 30px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--electric-green);
}

.footer-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 40px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--electric-green);
    padding-left: 6px;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .floating-bar { display: block; }
    .guide-grid, .guide-grid.reverse { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding-bottom: 60px; }
    .main-title { font-size: 1.7rem; }
    .hero-btn-group { flex-direction: column; width: 100%; }
    .cta-banner-btn { width: 100%; text-align: center; }
    .phone-img { max-width: 85%; }
    .apk-download-card { flex-direction: column; text-align: center; }
    .btn-download { margin-left: 0; width: 100%; text-align: center; }
    .gift-code-badge { font-size: 0.95rem; padding: 10px 14px; }
}