/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

:root {
    --red: #D42027;
    --red-light: #E63946;
    --red-dark: #B01A20;
    --black: #1A1A1A;
    --black-dark: #0D0D0D;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --green: #10B981;
    --orange: #F59E0B;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

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

html { scroll-behavior: smooth; }

/* ========== KK LOGO ========== */
.kk-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--red);
    color: white;
    font-size: 22px;
    font-weight: 900;
    border-radius: 10px;
    letter-spacing: -1px;
    font-style: italic;
    flex-shrink: 0;
}

.kk-logo.small {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
}

.kk-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.kk-logo-img.small {
    width: 36px;
    height: 36px;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--black);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 11px;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header-nav a:hover {
    color: var(--red);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.header-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-login {
    padding: 10px 20px;
    background: var(--black);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-login:hover {
    background: var(--red);
}

.btn-header-cta {
    padding: 10px 20px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-header-cta:hover {
    background: var(--red-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 40%, #2A1015 70%, var(--red-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 32, 39, 0.15);
    border: 1px solid rgba(212, 32, 39, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--red-light);
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--red);
}

.hero-text > p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-hero-primary {
    padding: 16px 32px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 32, 39, 0.4);
}

.btn-hero-secondary {
    padding: 16px 28px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

.hero-badges {
    display: flex;
    gap: 20px;
}

.h-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.h-badge i {
    color: var(--red);
    font-size: 13px;
}

/* Hero Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 0;
    width: 380px;
    overflow: hidden;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.hero-card-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
}

.hero-calc-row span {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.hero-calc-row strong {
    color: white;
    font-size: 15px;
}

.hero-calc-row strong.highlight {
    color: var(--red-light);
    font-size: 18px;
}

.hero-calc-row strong.green {
    color: #34D399;
}

.hero-card-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mini-banks {
    display: flex;
    gap: 8px;
}

.mini-banks span {
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* ========== STATS SECTION ========== */
.stats-section {
    background: var(--black-dark);
    padding: 60px 0;
    border-top: 1px solid rgba(212, 32, 39, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-block {}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 4px;
}

.stat-text {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 700;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 32, 39, 0.08);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-label.center {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.25;
}

.about-content h2 span {
    color: var(--red);
}

.about-content > p {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-feat {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feat-icon {
    width: 32px;
    height: 32px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feat strong {
    display: block;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 2px;
}

.about-feat p {
    font-size: 13px;
    color: var(--gray-500);
}

/* About Visual */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-stack {
    position: relative;
    width: 340px;
    height: 300px;
}

.about-card {
    position: absolute;
    padding: 24px 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px) !important;
}

.about-card.c1 {
    background: var(--black);
    color: white;
    top: 0;
    left: 0;
    transform: rotate(-3deg);
}

.about-card.c2 {
    background: var(--red);
    color: white;
    top: 100px;
    left: 40px;
    transform: rotate(2deg);
}

.about-card.c3 {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--gray-200);
    top: 200px;
    left: 10px;
    transform: rotate(-1deg);
}

.about-card i {
    font-size: 24px;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: var(--black);
    margin-bottom: 12px;
}

.section-title span {
    color: var(--red);
}

.section-desc {
    text-align: center;
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.service-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--gray-100);
    position: absolute;
    top: 12px;
    right: 16px;
    line-height: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(212, 32, 39, 0.08);
    color: var(--red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */
.how-section {
    padding: 100px 0;
    background: var(--white);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 40px 32px;
    flex: 1;
    max-width: 300px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-icon {
    width: 72px;
    height: 72px;
    background: rgba(212, 32, 39, 0.06);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.step-connector {
    color: var(--gray-300);
    font-size: 24px;
    flex-shrink: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.testimonial-stars {
    color: var(--orange);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.testimonial-card > p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    color: var(--black);
}

.testimonial-author span {
    font-size: 12px;
    color: var(--gray-500);
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--black-dark) 0%, var(--black) 50%, #2A1015 100%);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.cta-content p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-bottom: 20px;
}

.cta-features {
    display: flex;
    gap: 24px;
}

.cta-features span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cta-features i {
    color: var(--red);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cta-primary {
    padding: 16px 36px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-cta-primary:hover {
    background: var(--red-light);
    transform: translateY(-2px);
}

.btn-cta-phone {
    padding: 14px 36px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-cta-phone:hover {
    border-color: white;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
}

.contact-info > p {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 36px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item > i {
    width: 44px;
    height: 44px;
    background: rgba(212, 32, 39, 0.08);
    color: var(--red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--black);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 13px;
    color: var(--gray-500);
}

.contact-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.contact-form textarea {
    resize: vertical;
}

.btn-contact-submit {
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-contact-submit:hover {
    background: var(--red-dark);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--black-dark);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-name {
    color: white;
}

.footer-brand > p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}

/* ========== LOGIN MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 20px;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 14px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-header .kk-logo {
    margin: 0 auto 16px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.modal-header p {
    color: var(--gray-500);
    font-size: 14px;
}

.modal-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

.modal-footer strong {
    color: var(--red);
    cursor: pointer;
}

/* ========== SHARED FORM STYLES ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(212, 32, 39, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    font-size: 14px;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--gray-50);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 32, 39, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
}

.remember-me input { accent-color: var(--red); }

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-error {
    margin-top: 16px;
    padding: 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

/* ========== DASHBOARD ========== */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--red);
}

.nav-item.active {
    background: rgba(212, 32, 39, 0.08);
    color: var(--red);
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-600);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #FEF2F2;
    border-color: #FECACA;
    color: var(--red);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 8px;
}

.notification-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--red);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.user-role {
    font-size: 12px;
    color: var(--gray-500);
}

.content-area {
    padding: 32px;
    flex: 1;
}

/* Dashboard Sections */
.section-header {
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--red);
}

.section-header p {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 4px;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--black) 0%, #2A1015 60%, var(--red) 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.welcome-text h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-text p {
    opacity: 0.85;
    font-size: 14px;
}

.welcome-icon {
    font-size: 64px;
    opacity: 0.3;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.quick-action-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.action-icon.red { background: #FEF2F2; color: var(--red); }
.action-icon.dark { background: var(--gray-100); color: var(--black); }
.action-icon.orange { background: #FFFBEB; color: var(--orange); }
.action-icon.gray { background: var(--gray-100); color: var(--gray-500); }
.action-icon.blue { background: #EFF6FF; color: var(--blue); }
.action-icon.green { background: #ECFDF5; color: var(--green); }
.action-icon.purple { background: #F5F3FF; color: var(--purple); }

.quick-action-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-action-card p {
    font-size: 13px;
    color: var(--gray-500);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--gray-100);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.red { background: #FEF2F2; color: var(--red); }
.stat-icon.dark { background: var(--gray-100); color: var(--black); }
.stat-icon.orange { background: #FFFBEB; color: var(--orange); }
.stat-icon.blue { background: #EFF6FF; color: var(--blue); }
.stat-icon.green { background: #ECFDF5; color: var(--green); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

/* Calculator Hero Layout */
.calc-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
}

.calc-hero-left {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--gray-100);
    min-width: 0;
    overflow: hidden;
}

.calc-overline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.calc-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.calc-hero-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.6;
}

.calc-tab-switcher {
    display: flex;
    background: var(--gray-50);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 28px;
    border: 1px solid var(--gray-200);
}

.calc-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 26px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.calc-tab.active {
    background: var(--gray-800);
    color: white;
    box-shadow: var(--shadow-sm);
}

.calc-tab:hover:not(.active) {
    color: var(--gray-800);
}

.calc-form-area { }

.big-input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.big-input-box {
    flex: 1;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    transition: var(--transition);
}

.big-input-box:focus-within {
    border-color: var(--red);
}

.big-input-label {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 8px;
    font-weight: 500;
}

.big-input {
    width: 100%;
    border: none;
    outline: none;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-800);
    font-family: inherit;
    background: transparent;
}

.big-input::placeholder {
    color: var(--gray-300);
}

.slider-box {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.slider-label {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 6px;
    font-weight: 500;
}

.slider-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.term-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
}

.term-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(212,32,39,0.3);
}

.term-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(212,32,39,0.3);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: var(--gray-400);
}

.calc-hero-right {
    min-width: 0;
    overflow: hidden;
}

.calc-result-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--gray-100);
}

.calc-result-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

select:focus {
    outline: none;
    border-color: var(--red);
    background-color: var(--white);
}

.input-wrapper.currency input {
    font-weight: 600;
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: var(--gray-50);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover { background: var(--gray-100); }

.result-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.result-item.highlight {
    background: linear-gradient(135deg, var(--black), var(--red));
    color: white;
}

.result-item.highlight .result-label { color: rgba(255,255,255,0.85); }
.result-item.highlight .result-value { color: white; font-size: 20px; }

.result-label { font-size: 13px; color: var(--gray-500); }
.result-value { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.result-value.commission { color: var(--green); }

.amortization-toggle { margin-top: 20px; }

.amortization-table {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.amortization-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.amortization-table th { background: var(--gray-50); padding: 10px 12px; text-align: left; font-weight: 600; color: var(--gray-600); position: sticky; top: 0; }
.amortization-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }

/* Installment */
.installment-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    align-items: start;
}

.installment-form-card, .installment-results {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--gray-100);
    min-width: 0;
    box-sizing: border-box;
}

.bank-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.bank-tag {
    padding: 6px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.installment-row:hover {
    border-color: var(--red);
    background: rgba(212, 32, 39, 0.02);
}

.installment-left { display: flex; flex-direction: column; }
.installment-count { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.installment-monthly { font-size: 18px; font-weight: 700; color: var(--gray-800); }
.installment-total-label { font-size: 12px; color: var(--gray-400); }
.installment-profit { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 2px; }

/* Toggle Switch */
.form-check-group { margin-bottom: 20px; }
.toggle-label { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--gray-700); cursor: pointer; }
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--gray-300); border-radius: 26px; transition: var(--transition); }
.slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: var(--transition); }
.switch input:checked + .slider { background: var(--red); }
.switch input:checked + .slider:before { transform: translateX(22px); }

/* Empty State */
.empty-state { text-align: center; padding: 80px 40px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-100); }
.empty-state i { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { color: var(--gray-400); font-size: 14px; }

/* Campaigns */
.campaigns-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.campaign-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 2px solid var(--gray-100);
    position: relative;
    transition: var(--transition);
}

.campaign-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); }
.campaign-card.popular { border-color: var(--red); }

.campaign-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.campaign-badge.original { background: var(--gray-100); color: var(--gray-600); }
.campaign-badge.premium { background: #FEF2F2; color: var(--red); }
.campaign-badge.premium2 { background: #EFF6FF; color: var(--blue); }
.campaign-badge.premium3 { background: #FFFBEB; color: var(--orange); }

.campaign-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--gray-800); }
.campaign-rates { display: flex; flex-direction: column; gap: 10px; }
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-50); font-size: 13px; }
.rate-row span { color: var(--gray-500); }
.rate-row strong { color: var(--gray-800); }

/* ========== BANK CARD ICONS ========== */
.bank-cards-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.bank-card-icon {
    padding: 3px 8px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--white);
    line-height: 1.3;
    white-space: nowrap;
}

.bank-card-icon.axess { color: #1a1a1a; }
.bank-card-icon.bonus { color: #E5007D; }
.bank-card-icon.bankkart { color: #00A651; }
.bank-card-icon.maximum { color: #E30613; }
.bank-card-icon.paraf { color: #6B2D8B; }
.bank-card-icon.saglam { color: #2E8B57; }
.bank-card-icon.world { color: #FF6600; }

.installment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 10px;
}

.installment-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== INSTALLMENT DETAIL TABLE ========== */
.installment-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.installment-detail-table thead th {
    background: var(--gray-800);
    color: #fff;
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}
.installment-detail-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--gray-700);
    white-space: nowrap;
}
.installment-detail-table tbody tr:hover {
    background: rgba(212, 32, 39, 0.03);
}
.installment-detail-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}
.installment-detail-table tbody tr:nth-child(even):hover {
    background: rgba(212, 32, 39, 0.05);
}

/* ========== SHARE MODAL ========== */
.share-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-share {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-share.pdf {
    background: #DC2626;
    color: white;
}

.btn-share.pdf:hover { background: #B91C1C; }

.btn-share.whatsapp {
    background: #25D366;
    color: white;
}

.btn-share.whatsapp:hover { background: #1DA851; }

.btn-share.close-btn {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-share.close-btn:hover { background: var(--gray-200); }

/* ========== HISTORY ========== */
.history-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.history-date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
}

.history-date-picker label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.history-date-picker label i { color: var(--red); }

.history-date-picker input {
    border: none;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: var(--gray-800);
    background: transparent;
    cursor: pointer;
}

.history-date-picker input:focus { outline: none; }

.history-info {
    font-size: 13px;
    color: var(--gray-500);
}

.history-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.history-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.history-card-header .history-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.history-type.credit { background: #EFF6FF; color: #3B82F6; }
.history-type.installment { background: #ECFDF5; color: #10B981; }

.history-card-header .history-time {
    font-size: 12px;
    color: var(--gray-400);
}

.history-customer {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.history-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.history-detail {
    font-size: 13px;
    color: var(--gray-500);
}

.history-detail strong {
    color: var(--gray-800);
}

.history-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.history-actions button {
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: var(--white);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    color: var(--gray-600);
}

.history-actions button:hover { border-color: var(--red); color: var(--red); }
.history-actions button.pdf-btn:hover { border-color: #DC2626; color: #DC2626; }
.history-actions button.wa-btn:hover { border-color: #25D366; color: #25D366; }
.history-actions button.del-btn:hover { border-color: #DC2626; color: #DC2626; }

/* ========== ADMIN PANEL ========== */
.nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 12px 16px;
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px 8px;
    display: block;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.admin-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab.active {
    background: var(--white);
    color: var(--red);
    box-shadow: var(--shadow-sm);
}

.admin-tab:hover:not(.active) {
    color: var(--gray-700);
}

.admin-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 28px;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.admin-card h3 i {
    color: var(--red);
}

.admin-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.admin-rates-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.admin-rate-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.admin-rate-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.admin-rate-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: var(--white);
}

.admin-rate-item input:focus {
    outline: none;
    border-color: var(--red);
}

.admin-campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-campaign-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
}

.admin-campaign-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-campaign-header .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 180px;
}

.admin-campaign-header label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
    display: block;
}

.admin-campaign-header input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
}

.admin-campaign-header input:focus {
    outline: none;
    border-color: var(--red);
}

.admin-install-rates {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.admin-install-rate-item {
    text-align: center;
}

.admin-install-rate-item label {
    display: block;
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.admin-install-rate-item input {
    width: 100%;
    padding: 6px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-family: inherit;
    background: var(--white);
}

.admin-install-rate-item input:focus {
    outline: none;
    border-color: var(--red);
}

.admin-save-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ECFDF5;
    color: var(--green);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .services-grid, .campaigns-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text > p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-badges { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: -1; margin-bottom: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-features { justify-content: center; flex-wrap: wrap; }
    .calc-hero { grid-template-columns: 1fr; }
    .installment-layout { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .steps-grid { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }
}

@media (max-width: 768px) {
    .admin-rates-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-install-rates { grid-template-columns: repeat(3, 1fr); }
    .admin-tabs { flex-direction: column; }
    .hero-text h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .content-area { padding: 20px; }
    .topbar { padding: 12px 20px; }
    .welcome-banner { padding: 24px; }
    .welcome-text h1 { font-size: 20px; }
    .welcome-icon { display: none; }
    .quick-actions { grid-template-columns: 1fr; }
    .stats-row, .stats-grid { grid-template-columns: 1fr; }
    .services-grid, .campaigns-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .calc-tab-switcher { flex-direction: column; }
    .calc-tab { font-size: 12px; padding: 8px 12px; }
    .big-input { font-size: 22px; }
    .slider-value { font-size: 22px; }
    .calc-hero-title { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title, .about-content h2 { font-size: 28px; }
    .stat-number { font-size: 32px; }
    .hero-card { width: 100%; }
    .btn-header-cta { display: none; }
    .main-content, .content-area, .dashboard-layout { max-width: 100vw; overflow-x: auto; }
    .topbar { padding: 12px 16px; gap: 8px; }
    .topbar-right { gap: 10px; }
    .user-info span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-card { padding: 16px; overflow-x: auto; }
    .installment-layout { grid-template-columns: 1fr; }
    .calc-hero-left { padding: 16px; }
    .calc-hero-right { padding: 0; }
    .installment-results { padding: 0; }
    .installment-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        max-width: 100vw;
    }
    .installment-detail-table { font-size: 12px; }
    .installment-detail-table thead th {
        padding: 8px 6px;
        font-size: 10px;
        letter-spacing: 0;
        white-space: normal;
    }
    .installment-detail-table tbody td {
        padding: 8px 6px;
        font-size: 12px;
        white-space: normal;
    }
    .calc-hero { gap: 16px; }
    .calc-tab-switcher { flex-direction: row; }
    .calc-tab { font-size: 11px; padding: 8px 10px; white-space: nowrap; }
    .modal-container { margin: 16px; max-width: calc(100vw - 32px); }
    img { max-width: 100%; height: auto; }
}

/* ========== ANNOUNCEMENT BADGE ========== */
.ann-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #D42027;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 8px;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.ann-card {
    border-left: 3px solid var(--red);
}
