@import url('https://fonts.googleapis.css2?family=Inter:wght@400;500;600;700;800&display=swap');

.bl-generator-container.dark-theme {
    background: #141416;
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* TOP BAR & TABS */
.bl-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.bl-credit-badge {
    background: rgba(255, 45, 85, 0.15);
    color: #ff2d55;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 45, 85, 0.3);
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.1);
}
.bl-credit-badge.unauth {
    color: #888;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    box-shadow: none;
}
.bl-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.03);
}
.bl-tab-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bl-tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.bl-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #ff2d55 0%, #ff5e62 100%);
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.3);
}

/* TYPOGRAPHY */
.bl-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    letter-spacing: -0.5px;
    color: #fff;
}

/* INPUTS */
.bl-section {
    margin-bottom: 20px;
}
.bl-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.bl-col-50 {
    flex: 1;
}
textarea, input[type="text"], input[type="number"], select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 14px 16px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
textarea:focus, input[type="text"]:focus, input[type="number"]:focus, select:focus {
    outline: none !important;
    border-color: #ff2d55 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.1) !important;
}
textarea {
    height: 160px;
    resize: vertical;
    line-height: 1.5;
}
.bl-disabled-input {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0,0,0,0.2) !important;
}

/* CUSTOM CHECKBOX */
.bl-checkbox-wrap label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    padding-left: 32px;
    font-size: 15px;
    color: #ddd;
    font-weight: 500;
}
.bl-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.bl-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}
.bl-checkbox-wrap:hover input ~ .bl-checkmark {
    background-color: rgba(255,255,255,0.1);
}
.bl-checkbox-wrap input:checked ~ .bl-checkmark {
    background-color: #ff2d55;
    border-color: #ff2d55;
    box-shadow: 0 2px 10px rgba(255, 45, 85, 0.3);
}
.bl-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.bl-checkbox-wrap input:checked ~ .bl-checkmark:after {
    display: block;
}

/* SELECT DROPDOWN */
.bl-select-wrap {
    position: relative;
}
.bl-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px !important;
    cursor: pointer;
}
.bl-select-wrap::after {
    content: "▼";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff2d55;
    pointer-events: none;
    font-size: 12px;
}
.bl-pink-border {
    border-color: rgba(255, 45, 85, 0.5) !important;
}
.bl-pink-text {
    color: white !important;
}
.bl-select-wrap select option {
    background: #222;
    color: #fff;
}

/* MAIN BUTTON */
.bl-cta-section {
    margin-top: 30px;
}
.bl-cta-button {
    background: linear-gradient(135deg, #ff2d55 0%, #ff5e62 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 45, 85, 0.3);
}
.bl-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 45, 85, 0.4);
}
.bl-cta-button:active {
    transform: translateY(1px);
}
.bl-cta-button:disabled {
    background: #444;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* PRICING TABLE UPGRADES */
.bl-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}
.bl-pricing-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bl-pricing-header p {
    color: #888;
    font-size: 16px;
}
.bl-billing-toggle {
    display: inline-flex;
    background: rgba(0,0,0,0.4);
    border-radius: 40px;
    padding: 5px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.bl-toggle-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.bl-toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bl-pricing-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.bl-pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 30px 24px;
    width: calc(25% - 18px);
    min-width: 220px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.bl-pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255,255,255,0.15);
}
.bl-pricing-card h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ddd;
}
.bl-price {
    font-size: 42px;
    font-weight: 800;
    margin: 20px 0 5px;
    color: #fff;
    letter-spacing: -1px;
}
.bl-price span {
    font-size: 16px;
    color: #888;
    font-weight: 500;
}
.bl-strike {
    font-size: 16px;
    color: #666;
    text-decoration: line-through;
    font-weight: 500;
    margin-left: 5px;
}
.bl-credits-amount {
    color: #ff2d55;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
}
.bl-pricing-card p {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}
.bl-buy-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}
.bl-buy-btn:hover {
    background: #eee;
    transform: translateY(-2px);
}

.bl-payment-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.bl-paypal-btn {
    background: #FFC439;
    color: #111;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}
.bl-paypal-btn:hover {
    background: #f2ba36;
    transform: translateY(-2px);
}
.bl-paypal-btn:active {
    transform: translateY(0);
}
.bl-paypal-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.bl-pricing-card .bl-buy-btn, 
.bl-pricing-card .bl-paypal-btn {
    margin-top: 0;
}

/* MOST POPULAR BADGE OVERRIDE */
.bl-popular {
    background: rgba(255, 45, 85, 0.03);
    border-color: rgba(255, 45, 85, 0.3);
    box-shadow: 0 20px 40px rgba(255,45,85,0.08);
    transform: scale(1.03);
    z-index: 2;
}
.bl-popular:hover {
    transform: scale(1.03) translateY(-8px);
    border-color: rgba(255, 45, 85, 0.5);
    box-shadow: 0 30px 50px rgba(255,45,85,0.15);
}
.bl-popular .bl-buy-btn {
    background: linear-gradient(135deg, #ff2d55 0%, #ff5e62 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
}
.bl-popular .bl-buy-btn:hover {
    box-shadow: 0 12px 25px rgba(255, 45, 85, 0.4);
}
.bl-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff2d55 0%, #ff5e62 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 45, 85, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* LIVE PREVIEW */
.bl-section-title { font-size: 14px; font-weight: 600; color: #ddd; margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.bl-preview-container { margin-bottom: 30px; }
.bl-preview-wrapper { 
    width: 100%; 
    height: 180px; 
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><rect width="10" height="10" fill="%23222"/><rect x="10" width="10" height="10" fill="%23111"/><rect y="10" width="10" height="10" fill="%23111"/><rect x="10" y="10" width="10" height="10" fill="%23222"/></svg>'); /* Checkered transparent bg */
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
#bl-live-preview { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }

/* DROPZONE */
.bl-dropzone {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.bl-dropzone.dragover { border-color: #ff2d55; background: rgba(255,45,85,0.05); }
.bl-dropzone-label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bl-drop-icon { font-size: 28px; opacity: 0.8; }
.bl-drop-text { color: #aaa; font-size: 14px; }
.bl-drop-text strong { color: #ff2d55; }

/* GALLERY */
.bl-image-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,45,85,0.5) transparent;
}
.bl-image-gallery::-webkit-scrollbar { height: 6px; }
.bl-image-gallery::-webkit-scrollbar-thumb { background: rgba(255,45,85,0.5); border-radius: 6px; }
.bl-thumb-wrap {
    flex: 0 0 calc(33.333% - 8px);
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bl-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bl-thumb-wrap:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }
.bl-thumb-wrap.active { border-color: #ff2d55; box-shadow: 0 0 15px rgba(255,45,85,0.4); transform: scale(0.96); }
.bl-thumb-wrap.active::after { 
    content:"✓"; position:absolute; top:5px; right:5px; background:#ff2d55; color:#fff; 
    border-radius:50%; width:20px; height:20px; display:flex; align-items:center; justify-content:center; 
    font-size:12px; font-weight:bold; box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
    .bl-pricing-card {
        width: calc(50% - 12px);
    }
    .bl-popular {
        transform: scale(1);
    }
    .bl-popular:hover {
        transform: translateY(-8px);
    }
}
@media (max-width: 600px) {
    .bl-pricing-card {
        width: 100%;
    }
    .bl-top-bar {
        flex-direction: column;
        gap: 20px;
    }
    .bl-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* CUSTOM AUTH SYSTEM */
.bl-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
    background: #0f0f11;
    border-radius: 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.bl-auth-card {
    background: #141416;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}
.bl-auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 12px;
}
.bl-auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.bl-auth-tab.active {
    background: #ff2d55;
    color: #fff;
}
.bl-auth-form {
    display: none;
}
.bl-auth-form.active {
    display: block;
}
.bl-form-group {
    margin-bottom: 20px;
}
.bl-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
}
.bl-auth-card input[type="text"], 
.bl-auth-card input[type="password"], 
.bl-auth-card input[type="email"] {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 15px;
}
.bl-auth-card input:focus {
    border-color: #ff2d55;
    outline: none;
    background: rgba(255,255,255,0.05);
}
.bl-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}
.bl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.bl-forgot-link {
    color: #ff2d55;
    text-decoration: none;
}
.bl-auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff2d55 0%, #ff5e62 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
    transition: transform 0.2s ease;
}
.bl-auth-btn:hover {
    transform: translateY(-2px);
}
.bl-auth-msg {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
}
.bl-auth-msg.error { color: #ff5e62; }
.bl-auth-msg.success { color: #4caf50; }

/* PROFILE CARD */
.profile-card {
    max-width: 500px;
}
.bl-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.bl-avatar img {
    border-radius: 50%;
    border: 3px solid #ff2d55;
}
.bl-profile-info h2 { margin: 0; font-size: 20px; }
.bl-profile-info p { margin: 5px 0 0; color: #888; font-size: 14px; }
.bl-profile-stats {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}
.bl-stat-label { display: block; color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.bl-stat-value { display: block; font-size: 32px; font-weight: 800; color: #ff2d55; margin-top: 5px; }
.bl-profile-actions {
    display: flex;
    gap: 15px;
}
.bl-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.bl-btn-primary { background: #ff2d55; color: #fff; }
.bl-btn-secondary { background: rgba(255,255,255,0.1); color: #fff; }

/* PRICING OVERLAY */
.bl-pricing-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}
.bl-lock-card {
    background: #1c1c1e;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 300px;
}
.bl-lock-icon { font-size: 40px; margin-bottom: 15px; display: block; }
.bl-lock-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; display: block; }
.bl-lock-text { font-size: 14px; color: #aaa; margin-bottom: 20px; display: block; }
.bl-lock-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #ff2d55;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
}

