/* ============================================
   ROOT VARIABLES
   ============================================ */

:root {
    --bg-primary: #050608;
    --bg-secondary: #0a0b10;
    --bg-card: #111317;
    --bg-input: #0d0e12;
    --bg-hover: #1a1d24;
    
    --neon-blue: #00d2ff;
    --neon-purple: #6c2bd9;
    --neon-glow: rgba(0, 210, 255, 0.2);
    --neon-glow-strong: rgba(0, 210, 255, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 210, 255, 0.3);
    
    --error: #ff4757;
    --success: #00d26a;
    
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-glow-strong);
}

/* ============================================
   BACKGROUND GLOW (GPU Optimized)
   ============================================ */

.bg-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--neon-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    animation: glowPulse 8s ease-in-out infinite alternate;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1.05) rotate(2deg);
    }
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */

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

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 0.5rem;
}

.logo {
    font-size: clamp(2.8rem, 7vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 60%, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoPulse 3s ease-in-out infinite;
    will-change: filter;
    transform: translateZ(0);
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 210, 255, 0.2));
    }
}

.logo span {
    -webkit-text-fill-color: var(--neon-blue);
    text-shadow: 0 0 30px var(--neon-glow-strong);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

/* ============================================
   CARD
   ============================================ */

.card {
    background: var(--bg-card);
    padding: clamp(1.8rem, 5vw, 2.8rem);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    will-change: transform;
    transform: translateZ(0);
}

.card:hover {
    border-color: var(--border-hover);
}

/* ============================================
   INPUT SECTION
   ============================================ */

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px var(--neon-glow);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-dim);
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper:focus-within .input-icon {
    color: var(--neon-blue);
}

#longUrl {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 16px 16px 46px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    min-height: 60px;
    width: 100%;
}

#longUrl::placeholder {
    color: var(--text-dim);
}

.btn-paste {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 12px 16px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 1rem;
}

.btn-paste:hover {
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.08);
}

/* ============================================
   INPUT OPTIONS (Custom Code → Password → Expires)
   ============================================ */

.input-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-group label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-group label i {
    color: var(--neon-blue);
    font-size: 0.75rem;
}

.custom-code-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.custom-code-wrapper:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px var(--neon-glow);
}

.domain-prefix {
    color: var(--text-dim);
    font-size: 0.8rem;
    padding: 0 10px;
    white-space: nowrap;
    font-weight: 500;
}

#customCode {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 10px 10px 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    min-height: 44px;
    width: 100%;
}

#customCode::placeholder {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ============================================
   PASSWORD FIELD
   ============================================ */

.password-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.password-wrapper:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px var(--neon-glow);
}

#password {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    min-height: 44px;
    width: 100%;
}

#password::placeholder {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.btn-toggle-password {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0 14px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.btn-toggle-password:hover {
    color: var(--neon-blue);
}

/* ============================================
   SELECT (Expires)
   ============================================ */

select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px var(--neon-glow);
}

select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    font-family: inherit;
    will-change: transform;
    transform: translateZ(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), #00b4d8);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--neon-glow-strong);
}

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

.btn-shorten {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

.btn-shorten:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   BULK SECTION
   ============================================ */

.bulk-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.bulk-toggle {
    text-align: center;
}

.btn-bulk-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-bulk-toggle:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.05);
}

.bulk-area {
    margin-top: 1rem;
}

.bulk-input-wrapper {
    align-items: stretch;
}

.bulk-input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 16px 16px 46px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 120px;
    width: 100%;
    line-height: 1.8;
}

.bulk-input-wrapper textarea::placeholder {
    color: var(--text-dim);
}

.btn-bulk {
    width: 100%;
    margin-top: 0.8rem;
    padding: 14px;
}

.btn-bulk:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.bulk-results {
    margin-top: 1.2rem;
    max-height: 400px;
    overflow-y: auto;
}

.bulk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.bulk-item .original {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-item .short {
    font-size: 0.85rem;
    color: var(--neon-blue);
    font-weight: 600;
    min-width: 120px;
}

.bulk-item .btn-copy-mini {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.8rem;
}

.bulk-item .btn-copy-mini:hover {
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.08);
}

.bulk-item .status-icon {
    font-size: 0.9rem;
}

.bulk-item .status-icon.success {
    color: var(--success);
}

.bulk-item .status-icon.error {
    color: var(--error);
}

/* ============================================
   RESULT SECTION
   ============================================ */

.result-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.result-divider {
    text-align: center;
    margin-bottom: 1rem;
}

.result-divider span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-card);
    padding: 0 16px;
}

.url-output-wrapper {
    margin-bottom: 1rem;
}

/* ============================================
   URL OUTPUT - DESKTOP & MOBILE (SINGLE LINE)
   ============================================ */

.url-output {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--neon-blue);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.output-icon {
    color: var(--neon-blue);
    padding: 0 14px;
    font-size: 1rem;
    flex-shrink: 0;
}

#shortenedUrl {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    min-height: 52px;
    min-width: 0;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--neon-blue);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: inherit;
    border-left: 1px solid var(--border-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: rgba(0, 210, 255, 0.08);
}

.btn-copy i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================
   RESULT ACTIONS
   ============================================ */

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-share,
.btn-qr-toggle,
.btn-preview,
.btn-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-share:hover,
.btn-qr-toggle:hover,
.btn-preview:hover,
.btn-stats:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.05);
}

/* ============================================
   QR SECTION (Centered)
   ============================================ */

.qr-section {
    margin-top: 2rem;
    padding: 0.5rem 0;
}

.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
}

#qrcode {
    display: inline-block;
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    line-height: 0;
}

#qrcode img,
#qrcode canvas {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: auto;
    will-change: transform;
    transform: translateZ(0);
}

.btn-download-qr {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 32px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: var(--radius-sm);
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    align-self: center;
    will-change: transform;
    transform: translateZ(0);
}

.btn-download-qr:hover {
    background: var(--neon-blue);
    color: #000000;
    box-shadow: 0 0 30px var(--neon-glow-strong);
    transform: translateY(-2px);
}

.btn-download-qr i {
    font-size: 1rem;
}

/* ============================================
   STATS VIEW
   ============================================ */

.stats-card {
    text-align: center;
}

.stats-header {
    margin-bottom: 1.5rem;
}

.stats-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.stats-code {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 50px;
    color: var(--neon-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 12px;
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-blue);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
}

.original-url {
    color: var(--text-secondary);
    font-size: 0.85rem;
    word-break: break-all;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.original-url i {
    color: var(--neon-blue);
    margin-right: 8px;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--neon-blue);
}

.feature-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* ============================================
   TRUST SECTION
   ============================================ */

.trust-section {
    margin-top: 2rem;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    text-align: center;
}

.trust-item {
    padding: 12px;
}

.trust-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.trust-label {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 210, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
}

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

.toast i {
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.toast #toastMessage {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.toast.error-toast {
    border-color: var(--error);
    background: rgba(255, 71, 87, 0.12);
}

.toast.error-toast i {
    color: var(--error);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#previewContent {
    text-align: center;
}

#previewImageWrapper {
    margin-bottom: 1rem;
}

#previewImage {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-input);
}

#previewTitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

#previewDesc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.75rem;
}

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

/* ============================================
   UTILITY
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-section,
.bulk-area,
.bulk-item,
.qr-section {
    animation: fadeSlideUp 0.4s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ============================================
   SEO CONTENT & FAQ SECTION STYLES
   ============================================ */

.seo-content-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(20, 25, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    color: #a0aec0;
    text-align: left;
    line-height: 1.7;
}

.seo-article h2 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.seo-article h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.seo-article p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.seo-article strong, .seo-article code {
    color: #00d9ff;
}

/* FAQ Accordion Styles */
.faq-section {
    margin-top: 40px;
}

.faq-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    background: rgba(15, 20, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 217, 255, 0.3);
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #e2e8f0;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

/* Hide default arrow in webkit */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Custom Arrow */
.faq-item summary::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d9ff;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #a0aec0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5px;
    padding-top: 15px;
    animation: fadeIn 0.4s ease-in-out;
}

/* ============================================
   RESPONSIVE - TABLETS
   ============================================ */

@media (max-width: 768px) {
    .card {
        padding: 2rem;
    }

    .input-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .seo-content-section {
        padding: 20px;
    }
    
    .seo-article h2 {
        font-size: 1.4rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (SINGLE LINE FIX)
   ============================================ */

@media (max-width: 640px) {
    body {
        padding: 12px;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .card {
        padding: 1.5rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-card);
    }

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

    .logo {
        font-size: 2.4rem;
    }

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

    .result-actions {
        flex-direction: column;
    }

    .result-actions button {
        justify-content: center;
    }

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

    .bulk-item {
        flex-wrap: wrap;
    }

    .bulk-item .short {
        min-width: auto;
        flex: 1;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .qr-wrapper {
        gap: 1rem;
    }

    #qrcode {
        padding: 12px;
    }

    #qrcode img,
    #qrcode canvas {
        max-width: 140px;
        height: auto;
    }

    .btn-download-qr {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* ==========================================
       FIX: URL ICON + LINK + COPY ON SAME LINE
       ========================================== */

    .url-output {
        flex-wrap: nowrap !important;
        padding: 0 4px;
        gap: 4px;
        border-width: 2px;
        overflow: hidden;
    }

    .output-icon {
        display: inline-flex !important;
        padding: 0 6px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    #shortenedUrl {
        font-size: 0.75rem;
        min-height: 40px;
        padding: 6px 4px;
        text-align: left;
        flex: 1;
        min-width: 40px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-copy {
        padding: 6px 10px !important;
        font-size: 0.65rem !important;
        gap: 4px;
        white-space: nowrap !important;
        border-left: 1px solid var(--border-color) !important;
        border-top: none !important;
        width: auto !important;
        flex-shrink: 0;
        justify-content: center;
        min-width: fit-content;
        display: inline-flex !important;
        align-items: center;
        line-height: 1;
    }

    .btn-copy i {
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    /* Mobile touch optimizations */
    .btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .btn:active {
        transform: scale(0.97) !important;
    }

    .btn-primary:active {
        transform: scale(0.97) !important;
    }

    .toast,
    .modal-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .result-section,
    .bulk-area,
    .bulk-item,
    .qr-section {
        animation-duration: 0.25s !important;
    }

    .container {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 400px) {
    .logo {
        font-size: 2rem;
    }

    .card {
        padding: 1rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    #longUrl {
        font-size: 0.9rem !important;
        padding: 12px 12px 12px 38px;
        min-height: 48px;
    }

    .input-icon {
        left: 12px;
        font-size: 0.85rem;
    }

    .bulk-input-wrapper textarea {
        font-size: 0.85rem;
        padding: 12px 12px 12px 38px;
        min-height: 80px;
    }

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

    .feature-item {
        padding: 8px 4px;
    }

    .feature-item i {
        font-size: 1rem;
    }

    .feature-item span {
        font-size: 0.6rem;
    }

    #qrcode {
        padding: 8px;
    }

    #qrcode img,
    #qrcode canvas {
        max-width: 100px;
        height: auto;
    }

    .btn-download-qr {
        padding: 8px 14px;
        font-size: 0.75rem;
        gap: 6px;
        max-width: 200px;
    }

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

    .stat-box {
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 1rem;
        padding: 4px 8px;
    }

    #previewTitle {
        font-size: 1rem;
    }

    #previewDesc {
        font-size: 0.8rem;
    }

    .toast {
        padding: 8px 16px;
        font-size: 0.8rem;
        bottom: 16px;
        max-width: 90%;
    }

    .toast i {
        font-size: 0.9rem;
    }

    /* Small mobile URL output - extra compact */
    .url-output {
        padding: 0 2px;
        gap: 2px;
        border-width: 2px;
    }

    .output-icon {
        padding: 0 4px;
        font-size: 0.75rem;
    }

    #shortenedUrl {
        font-size: 0.65rem;
        min-height: 34px;
        padding: 4px 2px;
        min-width: 30px;
    }

    .btn-copy {
        padding: 4px 8px !important;
        font-size: 0.55rem !important;
        gap: 3px;
    }

    .btn-copy i {
        font-size: 0.6rem;
    }
}

/* ============================================
   RESPONSIVE - LARGE SCREENS
   ============================================ */

@media (min-width: 1024px) {
    .container {
        max-width: 780px;
    }

    .card {
        padding: 3rem;
    }

    .features {
        gap: 16px;
    }

    .feature-item {
        padding: 16px 12px;
    }
}