/* Premium CSS Architecture - WhatsApp Instant Chat
   ========================================================================== */

:root {
    --bg-primary: #0a0d14;
    --bg-secondary: #111622;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    /* Theme Accents */
    --primary: #25D366;
    --primary-glow: rgba(37, 211, 102, 0.3);
    --accent-cyan: #00f2fe;
    --accent-teal: #00c6ff;
    --gradient-brand: linear-gradient(135deg, #25D366 0%, #00c6ff 100%);
    --gradient-orb: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, rgba(0, 198, 255, 0.05) 50%, transparent 80%);
    
    /* Dimensions & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-glow: 0 0 30px -5px var(--primary-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.5;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Ambient Background Visuals
   ========================================================================== */
.bg-orb {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--gradient-orb);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    right: -10%;
    animation: orbFloat 20s infinite alternate;
}

.orb-2 {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    animation: orbFloat 25s infinite alternate-reverse;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* Scrollbars
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Typography & Globals
   ========================================================================== */
.app-container {
    max-width: 1100px;
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header
   ========================================================================== */
.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-glow {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    font-size: 2.75rem;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 500px;
}

/* Ad Slot Mockup Styles
   ========================================================================== */
.ad-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.ad-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    opacity: 0.8;
    transition: var(--transition);
}

.ad-placeholder:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.05);
}

.ad-placeholder i {
    font-size: 1.25rem;
}

.ad-mid .ad-placeholder {
    height: 120px; /* slightly bigger for middle banner */
}

/* Main Grid System
   ========================================================================== */
.tool-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 850px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphic Cards
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h2 i {
    color: var(--primary);
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Inputs & Controls
   ========================================================================== */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

input[type="tel"], 
textarea, 
.custom-select-trigger,
.link-preview-box input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1rem 1rem 3.25rem;
    color: var(--text-main);
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    outline: none;
}

textarea {
    resize: none;
    padding: 1rem 1.25rem 1rem 3.25rem;
}

.custom-select-trigger {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.custom-select-trigger i {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

/* Focus & Hover States */
input[type="tel"]:focus,
textarea:focus,
.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
    background: rgba(17, 22, 34, 0.8);
}

input[type="tel"]:focus + i,
.input-wrapper:focus-within i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.input-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Custom Searchable Select List
   ========================================================================== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-options-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.custom-select-wrapper.open .custom-options-container {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-select-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.search-box {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    padding: 0.5rem;
}

.search-box i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.options-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
}

.option-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.option-item:hover {
    background: rgba(37, 211, 102, 0.08);
    color: var(--primary);
}

.option-item span.flag {
    font-size: 1.2rem;
}

.option-item span.code {
    margin-left: auto;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Results Cards states
   ========================================================================== */
.results-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Empty state UI */
.empty-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    transition: var(--transition);
}

.empty-indicator i {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.1);
}

.pulse {
    animation: pulse-slow 2s infinite ease-in-out;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; color: var(--primary-glow); }
}

.empty-indicator h3 {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.active-results {
    opacity: 0;
    transform: translateY(10px);
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.results-section:not(.empty-state) .empty-indicator {
    display: none;
}

.results-section:not(.empty-state) .active-results {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Result Box Layouts
   ========================================================================== */
.link-preview-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.link-preview-box input {
    padding: 1rem 1.25rem;
    font-family: monospace;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.2);
    text-overflow: ellipsis;
}

.btn-icon-action {
    height: 52px;
    width: 52px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-icon-action:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-icon-action:active {
    transform: scale(0.95);
}

/* Action Buttons & Layout
   ========================================================================== */
.btn {
    padding: 1.1rem 2rem;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #000;
    box-shadow: var(--shadow-glow);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px 0 rgba(37, 211, 102, 0.5);
}

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

.qr-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0.5rem 0;
}

.qr-divider::before,
.qr-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.qr-divider::before { margin-right: 1rem; }
.qr-divider::after { margin-left: 1rem; }

.qr-output-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.canvas-holder {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform-origin: center;
    animation: qrPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes qrPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

canvas {
    display: block;
    width: 160px;
    height: 160px;
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* SEO rich Text Section
   ========================================================================== */
.seo-article {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-top: 1rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.article-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.faq-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.faq-item h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item code {
    background: rgba(255,255,255,0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

/* Footer Section
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    margin-top: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Toast Notification System
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(37, 211, 102, 0.9);
    backdrop-filter: blur(10px);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 🚀 Synergistic Promo Banner Styles
   ========================================================================== */
.promo-card {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(0, 198, 255, 0.01) 100%);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.05);
    animation: bannerFadeIn 0.5s ease-out;
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.promo-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(0, 198, 255, 0.02) 100%);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.1);
    transform: translateY(-2px);
}

.promo-badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.promo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.promo-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.1rem;
}

.promo-desc strong {
    color: #fff;
    font-weight: 600;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
}

.promo-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    border-color: #fff;
}

.promo-btn i {
    font-size: 0.75rem;
}
