/* ==============================================================================
   ZYROWEB PLATFORM DESIGN SYSTEM — NATIVE CSS
   Inspired by Official ZyroWeb Mockups & Anti-AI Slop Human-Crafted Aesthetic
   ============================================================================== */

:root {
    --primary: #1E60FF;
    --primary-dark: #124BD4;
    --primary-light: #EFF6FF;
    --primary-border: #BFDBFE;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= NAVBAR ================= */
.header-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--slate-900);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-badge {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(30, 96, 255, 0.3);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.desktop-auth-actions {
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.desktop-auth-actions .btn {
    padding: 7px 16px !important;
    font-size: 13.5px !important;
    height: 38px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.cart-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--slate-700);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 96, 255, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-700);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--slate-50);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* ================= ALERTS & NOTICES ================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: var(--danger-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ================= HERO SECTION (BERANDA) ================= */
.hero-wrapper {
    background: linear-gradient(135deg, #1E60FF 0%, #0046E2 100%);
    color: var(--white);
    padding: 50px 0 60px 0;
    border-radius: 0 0 24px 24px;
    margin-bottom: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-mockup-laptop {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--white);
}

.hero-mockup-laptop img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= 4 VALUE PROPOSITIONS STRIP ================= */
.value-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.value-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-900);
}

.value-text p {
    font-size: 13px;
    color: var(--slate-500);
}

/* ================= 3 CORE BUSINESS CARDS ================= */
.business-priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.biz-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 30px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.biz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.biz-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
}

.biz-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.biz-icon.website { background: #EFF6FF; color: #1E60FF; }
.biz-icon.sheets { background: #ECFDF5; color: #10B981; }
.biz-icon.template { background: #F5F3FF; color: #8B5CF6; }

.biz-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 10px;
}

.biz-desc {
    font-size: 14px;
    color: var(--slate-600);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

/* ================= TEMPLATE CATALOG CARDS ================= */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.template-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.template-thumb {
    position: relative;
    height: 190px;
    background: #E2E8F0;
    overflow: hidden;
}

.template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-thumb img {
    transform: scale(1.04);
}

.template-wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: var(--slate-400);
    transition: var(--transition);
}

.template-wish-btn:hover, .template-wish-btn.active {
    color: #EF4444;
}

.template-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.template-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
    line-height: 1.4;
}

.template-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 12px;
}

.price-normal {
    font-size: 13px;
    color: var(--slate-400);
    text-decoration: line-through;
}

.price-promo {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
    font-size: 13px;
    color: var(--slate-500);
}

.template-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F59E0B;
    font-weight: 600;
}

/* ================= BREADCRUMB ================= */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--slate-500);
    margin: 20px 0 24px 0;
}

.breadcrumb-nav a {
    color: var(--slate-500);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

/* ================= FLOATING WHATSAPP BUTTON ================= */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    font-size: 14px;
    font-weight: 700;
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.floating-wa-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

/* ================= FOOTER ================= */
.main-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 60px 0 30px 0;
    margin-top: auto;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--slate-400);
}

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

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

/* ================= FORM SYSTEM (MODERN & PROFESSIONAL) ================= */
.form-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.form-header {
    margin-bottom: 24px;
}

.form-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-subtitle {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}

.form-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.4;
    margin: 0;
}

.form-label .required {
    color: #EF4444;
    margin-left: 2px;
    font-weight: 700;
}

.form-control {
    display: block;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    color: #0F172A;
    background-color: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    font-family: inherit;
}

.form-control::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.form-control:focus {
    border-color: #1E60FF;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(30, 96, 255, 0.12);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    padding-right: 44px;
    cursor: pointer;
}

textarea.form-control {
    height: auto !important;
    min-height: 130px !important;
    padding: 14px 16px !important;
    line-height: 1.6;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: #64748B;
    margin-top: 2px;
}

.btn-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    background: #1E60FF;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(30, 96, 255, 0.25);
    text-decoration: none;
    margin-top: 6px;
}

.btn-form-submit:hover {
    background: #124BD4;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 96, 255, 0.35);
    color: #FFFFFF;
}

.btn-form-submit:active {
    transform: translateY(0);
}

.btn-form-submit svg {
    flex-shrink: 0;
}

/* Authentication & Modern Form Addons */
.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}

.input-addon-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-addon-wrap .form-control {
    width: 100% !important;
}

.input-with-left-icon {
    padding-left: 42px !important;
}

.input-with-right-toggle {
    padding-right: 44px !important;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.input-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 2;
}

.input-toggle-btn:hover {
    color: #1E60FF;
    background: #F1F5F9;
}

/* Password Strength Indicator */
.password-strength-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.password-strength-bar {
    display: flex;
    gap: 4px;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: #E2E8F0;
}

.strength-segment {
    flex: 1;
    height: 100%;
    background: #E2E8F0;
    border-radius: 2px;
    transition: background-color 0.25s ease;
}

.password-strength-text {
    font-size: 12px;
    color: #64748B;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.input-match-feedback {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    font-size: 14px;
    color: #64748B;
}

.auth-footer a {
    color: #1E60FF;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==============================================================================
   RESPONSIVE DESIGN SYSTEM (320px, 360px, 375px, 390px, 430px, 768px, 1024px, 1440px, 1920px)
   ============================================================================== */

/* Mobile Hamburger & Off-Canvas Public Drawer */
.nav-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--slate-700);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    touch-action: manipulation;
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
    display: block;
    opacity: 1;
}

.mobile-nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
}

.mobile-nav-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--slate-500);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.mobile-nav-actions-wrap {
    display: none;
}

.cart-icon-btn {
    position: relative;
}

.cart-badge-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #EF4444;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Controlled Responsive Table Wrappers */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 999px;
}

/* Responsive Modal Styling */
.modal-container {
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
}

/* --- Breakpoint: 993px - 1200px (Laptops & Compact Desktops) --- */
@media (max-width: 1200px) and (min-width: 993px) {
    .container {
        padding: 0 16px;
    }
    .catalog-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
    .nav-container {
        gap: 8px;
    }
    .nav-menu {
        gap: 4px;
    }
    .nav-link {
        font-size: 13px;
        padding: 5px 8px;
        white-space: nowrap !important;
    }
    .logo-brand {
        font-size: 18px;
        gap: 8px;
    }
    .logo-badge {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .desktop-auth-actions .btn {
        padding: 6px 12px !important;
        font-size: 12.5px !important;
        height: 34px !important;
    }
}

/* --- Breakpoint: <= 992px (Tablets & iPad Portrait) --- */
@media (max-width: 992px) {
    .nav-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-auth-actions {
        display: none !important;
    }

    .mobile-nav-header {
        display: flex;
    }

    .mobile-nav-actions-wrap {
        display: block;
        margin-top: auto;
        padding: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu li:not(.mobile-nav-header):not(.mobile-nav-actions-wrap) {
        border-bottom: 1px solid var(--slate-100);
    }

    .nav-link {
        display: flex;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .business-priority-grid {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        display: none; /* Collapsed or in mobile filter modal */
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* --- Breakpoint: <= 768px (Small Tablets & Large Mobile) --- */
@media (max-width: 768px) {
    /* Touch target & Font size optimization to eliminate iOS auto-zoom */
    input, select, textarea, .form-control {
        font-size: 16px !important;
    }

    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    .container {
        padding: 0 14px;
    }

    .nav-container {
        height: 64px;
    }

    .logo-brand {
        font-size: 19px;
    }

    .logo-badge {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .value-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .service-package-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }

    .auth-card {
        padding: 24px 18px;
        margin: 16px auto;
        border-radius: var(--radius-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .floating-wa-btn {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        font-size: 12px;
    }

    /* Template Detail Responsive Flow */
    .detail-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .detail-tabs-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .detail-actions-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Breakpoint: <= 430px (Standard Smartphones - iPhone 12/13/14/15, Android) --- */
@media (max-width: 430px) {
    .hero-title {
        font-size: 24px;
    }

    .value-strip {
        grid-template-columns: 1fr;
    }

    .business-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-lg {
        padding: 12px 16px;
        font-size: 14px;
    }

    .auth-title {
        font-size: 22px;
    }
}

/* --- Breakpoint: <= 360px (Compact Smartphones - iPhone SE 1st gen, small Android) --- */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        height: 58px;
    }

    .logo-brand span {
        font-size: 17px;
    }

    .hero-title {
        font-size: 21px;
    }

    .hero-badge-item {
        font-size: 11px;
    }

    .form-card {
        padding: 20px 12px;
    }

    .auth-card {
        padding: 20px 12px;
    }
}

/* --- Breakpoint: >= 1440px (Wide Screens, iMac, 1920px Full HD) --- */
@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }

    .hero-title {
        font-size: 42px;
    }
}


