/* =========================================================
   PREMIUM CREATE INVOICE PAGE
========================================================= */

body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 22%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 22%),
        #f4f7fb;
}

/* PAGE HEADER */
.page-header {
    text-align: center;
    margin-bottom: 35px;
}

.main-logo {
    height: 90px;
}

.top-badge {
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.page-header h2 {
    font-size: 44px;
    font-weight: 800;
    margin-top: 18px;
    color: #111827;
}

.page-header p {
    color: #6b7280;
    font-size: 17px;
    margin-top: 12px;
}

/* PREMIUM SECTION CARD */
.section-card {
    border: none;
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow:
        0 15px 50px rgba(15, 23, 42, 0.08),
        0 3px 12px rgba(15, 23, 42, 0.04);
}

.section-header {
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    top: -120px;
    right: -100px;
    opacity: 0.12;
}

/* SECTION COLORS */
.business-header {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.business-header::before {
    background: #2563eb;
}

.client-header {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.client-header::before {
    background: #22c55e;
}

.item-header {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.item-header::before {
    background: #f97316;
}

.tax-header {
    background: linear-gradient(135deg, #fdf4ff, #ffffff);
}

.tax-header::before {
    background: #c026d3;
}

.extra-header {
    background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.extra-header::before {
    background: #06b6d4;
}

/* SECTION TEXT */
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

/* CARD BODY */
.card-body-custom {
    padding: 30px;
}

/* FORM */
.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe4f0;
    background: #fbfdff;
    transition: all 0.25s ease;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #2563eb;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12) !important;
}

textarea.form-control {
    min-height: 110px;
    resize: none;
}

/* ITEMS */
.item-row {
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border: 1px solid #e6eef8;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.item-row::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.05);
    right: -60px;
    top: -60px;
}

/* BUTTON */
.btn-add-item {
    border-radius: 16px;
    padding: 12px 22px;
    font-weight: 700;
    border: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.btn-add-item:hover {
    color: #fff;
    opacity: 0.95;
}

/* UPLOAD */
.upload-box {
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 24px;
    height: 100%;
}

.upload-box h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

/* ADS */
.ad-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #1f2937);
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.18);
}

.ad-card .card-body {
    padding: 30px;
}

.ad-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* CTA */
.generate-wrap {
    margin-top: 30px;
}

.generate-btn {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.18);
    transition: 0.25s;
}

.generate-btn:hover {
    transform: translateY(-2px);
}

/* TIPS */
.tips-box {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.tips-box h6 {
    font-weight: 800;
    margin-bottom: 10px;
    color: #1e40af;
}

.tips-box ul {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

.tips-box li {
    margin-bottom: 8px;
}

/* MOBILE */
@media(max-width:768px) {

    .page-header h2 {
        font-size: 34px;
    }

    .card-body-custom {
        padding: 22px;
    }

    .section-title {
        font-size: 19px;
    }

}

.footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-top: 80px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}

/* 🔥 Premium blur */
.blur-content {
    filter: blur(2px);
}

/* 🔥 Dark overlay */
.overlay-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 5;
}

/* 🔥 Center message */
.lock-message {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
}

footer a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #2563eb;
}