/* =========================================
   2. COMPONENTS & UI ELEMENTS
   ========================================= */

/* Layout */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.nav {
    max-width: 1350px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- LOGO STYLES --- */
.nav-logo-img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text-main {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
    background: linear-gradient(90deg, #1b4f72 0%, #d35400 60%, #f1c40f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #1b4f72;
    margin-bottom: 2px;
}

.logo-text-sub {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
}

.logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f1c40f, #d35400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}

.nav-links a.active {
    color: var(--primary);
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    border-radius: 999px;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #14384e;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-soft);
}

.btn-soft {
    background: #e5edf8;
    color: var(--primary);
}

.btn-soft:hover {
    background: #d0ddf3;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px 40px 16px;
}

section {
    display: none;
    margin-top: 20px;
}

section.active-section {
    display: block;
}

/* Hero / Home */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 32px;
    margin-top: 24px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    color: #17202a;
    margin-bottom: 10px;
}

.hero-highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hero-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #dde3f0;
}

.hero-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.hero-card small {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.hero-card-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-card-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

/* Inputs */
.input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 17px;
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-soft);
}

/* Cards & grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

#services .card-grid {
    grid-template-columns: repeat;
}

/* Animated Badge */
.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 5px 15px;
    border-bottom-right-radius: 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite ease-in-out;
}

.badge-popular {
    background: linear-gradient(135deg, #f1c40f, #d35400);
}

.badge-rec {
    background: linear-gradient(135deg, #2ecc71, #16a085);
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        filter: brightness(100%);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(110%);
    }

    100% {
        transform: scale(1);
        filter: brightness(100%);
    }
}

/* Diagonal Discount Ribbon (Top-Right Corner) */
.discount-ribbon {
    position: absolute;
    top: 15px;
    right: -25px;
    transform: rotate(45deg);
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 5px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.discount-ribbon-green {
    background: #27ae60;
}

.discount-ribbon-orange {
    background: #f39c12;
}

/* Alias for compatibility with original backup */
.astro-ribbon {
    position: absolute;
    top: 15px;
    right: -25px;
    transform: rotate(45deg);
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 5px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2933;
}

.card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.price-tag {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-top: 4px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* FAQ & Blog */
.blog-card h4 {
    margin: 0;
    font-size: 16px;
}

.blog-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.faq-q {
    font-size: 15px;
    font-weight: 500;
}

.faq-a {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Contact & Dashboard */
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 3.5fr) minmax(0, 2.2fr);
    gap: 18px;
    margin-top: 14px;
}

.dash-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 16px 18px;
    margin-bottom: 12px;
}

.dash-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.dash-card small {
    font-size: 12.5px;
    color: var(--text-muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.stat-box {
    border-radius: 12px;
    padding: 10px 12px;
    background: #f3f6fd;
    border: 1px solid #dde3f0;
    font-size: 12px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
}

.stat-value {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-top: 8px;
}

th,
td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 500;
    color: var(--text-muted);
    background: #f5f7fd;
}

.label {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    align-items: center;
}

.label-success {
    background: #eafaf1;
    color: #1e8449;
}

.label-pending {
    background: #fff7e6;
    color: #9c640c;
}

.label-failed {
    background: #fdecea;
    color: #a93226;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-row .input {
    flex: 1;
}

.form-label {
    font-size: 12.5px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

/* Modals */
.modal-backdrop,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.modal,
.modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px 18px;
    width: 380px;
    max-width: 95%;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-header h3,
.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
}

.modal-body {
    font-size: 14.5px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.close-x {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
}

.admin-badge {
    font-size: 12px;
    color: var(--danger);
    font-weight: 600;
    text-transform: uppercase;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 54px;
    height: 54px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 5px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.trust-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 13px;
    line-height: 1.5;
}

.trust-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Admin Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    min-height: 80vh;
}

.admin-sidebar {
    background: #fff;
    border-right: 1px solid #dfe6e9;
    padding: 20px 10px;
}

.admin-menu-item {
    display: block;
    padding: 12px 15px;
    color: #2c3e50;
    border-radius: 6px;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: #eaf2f8;
    color: var(--primary);
}

.admin-content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dfe6e9;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.kpi-card {
    background: #fff;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.kpi-title {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 5px;
}

/* Comparison Table */
.comparison-wrapper {
    margin: 35px auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    max-width: 1400px;
    border: 1px solid #eee;
}

.comparison-table {
    width: 100%;
    min-width: 350px;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #333;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 4px;
    text-align: center;
    line-height: 1.3;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.col-feature {
    text-align: left !important;
    background-color: #fafafa;
    font-weight: 600;
    width: 20%;
    padding-left: 8px !important;
}

.col-free {
    color: #7f8c8d;
}

.col-report {
    color: #2980b9;
    font-weight: 600;
    background-color: #f4faff !important;
}

.col-consult {
    color: #27ae60;
    font-weight: 700;
}