:root {
    --primary: #f97316;
    --primary-grad: linear-gradient(90deg, #fb7185, #f97316);
    --bg-light: #fff1f2;
    --text-dark: #1f2937;
    --nav-h: 72px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    touch-action: pan-y;
}

* {
    box-sizing: border-box;
}

.oh {
  font-weight: 300; /* Mỏng để tạo tương phản */
  color: #1f2937;
}

.bee {
  font-weight: 800; /* Cực đậm để nhấn mạnh tên thương hiệu */
  background: linear-gradient(90deg, #fb7185, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* --- NAVBAR --- */
.navbar {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: #4b5563; font-weight: 500; font-size: 14px; }

.btn-signup {
    background: var(--primary-grad);
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    transition: 0.3s;
}

/* --- HERO & LOGO --- */
.hero {
    padding: 160px 20px 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    margin: 20px 0;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 550px;
    margin: 0 auto 40px;
}

/* --- BEE ANIMATIONS (Giữ nguyên của bạn) --- */
.logo-wrap { position: relative; display: inline-block; margin-bottom: 60px; }
.logo { font-family: 'Playfair Display', serif; font-size: 64px; margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.bee-icon { position: absolute; width: 50px; height: 50px; pointer-events: none; z-index: 10; }
.bee-big { top: -15px; left: -25px; animation: flyBig 8s infinite; }
.bee-small { top: 5px; left: -35px; transform: scale(0.8); animation: flySmall 8s infinite -2s; }

@keyframes flyBig {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(120px, -35px) rotate(8deg); }
  50% { transform: translate(240px, 0) rotate(-5deg); }
  75% { transform: translate(120px, 35px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes flySmall {
  0% { transform: translate(0, 0) scale(0.8); }
  50% { transform: translate(200px, 10px) scale(0.8); }
  100% { transform: translate(0, 0) scale(0.8); }
}

/* --- TOOL CARD & FORM (Sửa lỗi vênh iPhone) --- */
.tool-card {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.12);
    max-width: 680px; /* Tăng độ dài input */
    margin: 0 auto;
}

.mode-tabs { display: flex; gap: 8px; margin-bottom: 25px; justify-content: center; }
.tab-btn {
    border: none; background: #f3f4f6;
    padding: 10px 20px; border-radius: 50px;
    font-weight: 600; color: #6b7280; cursor: pointer;
}
.tab-btn.active { background: var(--primary); color: white; }

.form-container {
    display: flex;
    align-items: stretch; /* Đảm bảo con bên trong cao bằng nhau */
    background: #f9fafb;
    padding: 6px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    min-height: 56px;
    flex-direction: column;
    gap: 10px;
}
.form-container.expand {
    flex-direction: column;
}
.input-group { 
    flex: 1; 
    display: flex; 
    position: relative;
}
#urlInput, #textInput {
    width: 100%; border: none; background: transparent;
    padding: 0 15px; font-size: 16px; outline: none;
    -webkit-appearance: none; /* Quan trọng để fix iPhone */
    appearance: none;
}
#urlInput {
    height: 48px;           /* 🔥 fix chính */
    padding: 0 15px;
    font-size: 15px;
}
.input-group {
    align-items: center;   /* tránh lệch */
}
#textInput { min-height: 150px; padding: 15px; resize: none; }

#shortenBtn {
    background: var(--primary-grad);
    color: white; border: none;
    padding: 0 30px; border-radius: 12px;
    font-weight: 600; cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border-radius: 12px;
}

/* --- FEATURES --- */
.features { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.f-item { text-align: center; padding: 20px; }
.f-icon { font-size: 40px; margin-bottom: 15px; }

/* --- WHY OH BEE SECTION --- */
.why-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
}

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

.why-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin: 0 0 15px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.why-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.why-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
    border-color: var(--primary);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.why-card h3 {
    font-size: 22px;
    margin: 0 0 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.why-card p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.why-card code {
    background: #fff7ed;
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
}

.why-cta {
    text-align: center;
    padding: 50px 30px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.1);
}

.cta-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 25px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-grad);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
}

/* Responsive for Why Section */
@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
    }
    
    .why-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-card {
        padding: 25px 20px;
    }
    
    .cta-text {
        font-size: 20px;
    }
}

/* --- COOKIE --- */
.cookie-banner {
    position: fixed; bottom: 20px; right: 20px;
    background: #1f2937; color: white; padding: 20px;
    border-radius: 12px; max-width: 320px; z-index: 2000;
}
.cookie-banner button {
    background: var(--primary); color: white; border: none;
    padding: 8px 15px; border-radius: 6px; margin-top: 10px; cursor: pointer;
}
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111827;
    color: #e5e7eb;
    padding: 18px;
    border-radius: 12px;
    max-width: 320px;
}

.cookie-banner a {
    color: #fbbf24;
    text-decoration: underline;
}

.cookie-banner button {
    background: #f97316;
    margin-top: 10px;
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 34px; }
    .hero { padding: 110px 15px 50px; }
    .tool-card { padding: 20px; margin: 0 10px; }
    .form-container { flex-direction: column; }
    #shortenBtn { height: 50px; margin-top: 8px; width: 100%; }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        width: 95%;
        padding: 0 10px;
    }

    .auth-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 25px 15px;
    }

    /* Logo mobile */
    .logo { font-size: 48px; }
    .logo-wrap { margin-bottom: 30px; }

    /* Mode tabs: wrap trên màn hình nhỏ */
    .mode-tabs {
        gap: 6px;
        flex-wrap: wrap;
    }
    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* Footer responsive */
    .footer { padding: 50px 20px 30px; }
    .footer-container { flex-direction: column; gap: 30px; }
    .footer-brand { max-width: 100%; }
    .footer-links { flex-wrap: wrap; gap: 30px; }
    .link-group { min-width: 130px; }
}

.warning {
    margin-top: 12px;
    color: #ef4444;
    font-size: 13px;
    display: none;
}
.warning.show {
    display: block;
}

.result {
    margin-top: 16px;
    display: none;
    gap: 10px;
}
.result.show {
    display: flex;
}

#shortUrl {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

#copyBtn {
    background: #f97316;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
}


.qr-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.qr-preview img {
    background: white;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.qr-preview img:hover {
    transform: scale(1.03);
}
.qr-preview img {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #fb7185, #f97316) border-box;
    border: 2px solid transparent;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: #1f2937;
    display: block;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 0;
        background: white;
        width: 250px;
        flex-direction: column;
        padding: 20px;
        display: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-radius: 12px;
        margin-right: 5%;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .auth-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f3f4f6;
    }

    .btn-login, .btn-signup {
        text-align: center;
        padding: 12px 20px !important;
    }

    .user-menu {
        width: 100%;
    }

    .user-menu .user-avatar {
        margin: 0 auto;
        display: block;
    }

    .user-dropdown {
        position: static;
        box-shadow: none;
        margin-top: 10px;
        width: 100%;
    }
}

.footer {
    background: #fff;
    padding: 80px 20px 40px;
    border-top: 1px solid #f3f4f6;
    margin-top: 60px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo.small { font-size: 28px; margin-bottom: 15px; }
.footer-brand p { color: #6b7280; line-height: 1.6; font-size: 14px; }
.footer-links { display: flex; gap: 60px; }
.link-group h4 { margin-bottom: 20px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.link-group a { display: block; text-decoration: none; color: #6b7280; margin-bottom: 12px; font-size: 14px; transition: 0.2s; }
.link-group a:hover { color: var(--primary); }
.footer-bottom {
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.char-counter {
    position: absolute;
    bottom: 15px; /* Cách đáy textarea */
    right: 20px;  /* Cách lề phải textarea */
    font-size: 12px;
    color: #9ca3af;
    pointer-events: none;
    display: none; /* Hiện khi ở mode Text */
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Khi vượt giới hạn */
.char-counter.limit-exceeded {
    color: #ef4444;
    font-weight: bold;
}

/* Nút bị disable */
#shortenBtn:disabled {
    background: #e5e7eb !important;
    cursor: not-allowed;
    transform: none !important;
}

/* Style cho placeholder của textarea */
#textInput::placeholder, #urlInput::placeholder {
    color: #9ca3af;            /* Màu xám nhạt (Gray 400) */
    font-family: 'Outfit', sans-serif;
    font-weight: 300;          /* Để mỏng cho sang */
    opacity: 0.8;
    line-height: 1.6;          /* Giãn dòng giống như text thật */
}

/* Chrome, Firefox, Opera, Safari 10.1+ */
#textInput::placeholder, #urlInput::placeholder {
    color: #9ca3af;
    opacity: 1; /* Firefox yêu cầu cái này */
}

/* Microsoft Edge */
#textInput::-ms-input-placeholder,#urlInput::-ms-input-placeholder {
    color: #9ca3af;
}

/* Internet Explorer 10-11 */
#textInput:-ms-input-placeholder,#urlInput:-ms-input-placeholder {
    color: #9ca3af;
}

/* Settings & Password UI */
.extra-options {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    padding: 0 10px;
}

.btn-icon {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: 0.2s;
}

.btn-icon:hover, .btn-icon.active {
    color: var(--primary);
    border-color: var(--primary);
    background: #fff7ed;
}

#passwordWrapper {
    display: none; /* Ẩn mặc định */
    align-items: center;
    gap: 8px;
    flex: 1;
    animation: fadeIn 0.3s ease;
}

#passwordWrapper.show {
    display: flex;
}

#passwordInput {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

#applyPassBtn {
    background: #1f2937;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Trạng thái icon khi đã set password thành công */
.btn-icon.has-pass {
    background: var(--primary-grad);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

/* Hiệu ứng rung nhẹ khi apply để báo hiệu thành công */
@keyframes success-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.apply-animate {
    animation: success-bounce 0.4s ease;
}

/* === AUTH MODAL === */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #9ca3af;
    cursor: pointer;
    transition: 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.auth-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 800;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

.auth-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.google-signin-btn {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.social-btn:not(:disabled):hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.facebook-btn {
    color: #1877f2;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 15px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
}

.auth-note {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin: 10px 0;
}

.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.auth-footer p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* === USER MENU === */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary);
    transition: 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    padding: 15px;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease;
}

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

.user-menu.active .user-dropdown {
    display: block;
}

.user-info {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 10px;
}

.user-name {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: #9ca3af;
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.user-dropdown a:hover {
    background: #fef3f2;
    color: var(--primary);
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
    }
    
    .user-dropdown {
        right: -10px;
    }
}

/* === YOUR CONTENT MODAL === */
.content-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary-grad);
    color: white;
    border-color: transparent;
}

.user-content-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0 20px;
}

.content-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
}

.content-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.content-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.content-type.url {
    background: #dbeafe;
    color: #1e40af;
}

.content-type.text {
    background: #fef3c7;
    color: #92400e;
}

.content-date {
    font-size: 12px;
    color: #9ca3af;
}

.content-body {
    margin-bottom: 12px;
}

.content-slug {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.content-preview {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.content-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-copy-small, .btn-visit-small {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-copy-small {
    background: #1f2937;
    color: white;
    border: none;
}

.btn-copy-small:hover {
    background: #111827;
}

.btn-visit-small {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-visit-small:hover {
    background: var(--primary);
    color: white;
}

.content-actions .btn-delete-small {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.content-actions .btn-delete-small:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* === CUSTOM SLUGS MODAL === */
.custom-slug-form {
    padding: 0 20px;
    margin-bottom: 25px;
}

.slug-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.slug-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: 0.2s;
}

.slug-input-group input:focus {
    border-color: var(--primary);
}

.slug-input-group button {
    padding: 12px 24px;
    background: var(--primary-grad);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.slug-input-group button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.slug-input-group button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slug-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.slug-status {
    font-weight: 600;
}

.slug-status.available {
    color: #10b981;
}

.slug-status.unavailable {
    color: #ef4444;
}

.slug-status.checking {
    color: #9ca3af;
}

.slug-count {
    color: #6b7280;
}

.slug-count strong {
    color: var(--primary);
}

.custom-slugs-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 20px;
}

.slug-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
}

.slug-item:hover {
    border-color: var(--primary);
}

.slug-item.used {
    background: #fef3f2;
    border-color: #fed7d7;
}

.slug-item.used .slug-name {
    color: #dc2626;
}

.slug-item.used .btn-delete-small {
    background: #dc2626;
    color: white;
    font-weight: 700;
}

.slug-item.used .btn-delete-small:hover {
    background: #b91c1c;
}

.slug-info {
    flex: 1;
}

.slug-name {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.slug-status-text {
    font-size: 12px;
    color: #6b7280;
}

.btn-delete-small {
    padding: 6px 14px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-delete-small:hover {
    background: #fecaca;
}

/* === CUSTOM SLUG SELECTOR IN MAIN FORM === */
.custom-slug-selector {
    padding: 12px 15px;
    background: #fef3f2;
    border-radius: 10px;
    border: 1px solid #fed7d7;
    margin-top: 10px;
}

.slug-selector-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    cursor: pointer;
}

.slug-selector-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.slug-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: white;
    outline: none;
    transition: 0.2s;
}

.slug-dropdown:focus {
    border-color: var(--primary);
}

.slug-dropdown:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* === QUICK PUBLISH SECTION === */
.quick-publish-section {
    padding: 0 20px;
    margin-bottom: 20px;
}

.section-subtitle-small {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
}

.quick-publish-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-publish-form input {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.quick-publish-form input:focus {
    border-color: var(--primary);
}

.quick-publish-form button {
    padding: 12px 24px;
    background: var(--primary-grad);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.quick-publish-form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.quick-publish-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-publish-result {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.quick-publish-result.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.quick-publish-result.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.quick-publish-result a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.divider-line {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

.custom-slugs-section {
    padding: 0 20px;
}

/* === LOADING & EMPTY STATES === */
.loading-text, .empty-state, .error-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.error-state {
    color: #ef4444;
}

/* === SCROLLBAR STYLING === */
.user-content-list::-webkit-scrollbar,
.custom-slugs-list::-webkit-scrollbar {
    width: 8px;
}

.user-content-list::-webkit-scrollbar-track,
.custom-slugs-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.user-content-list::-webkit-scrollbar-thumb,
.custom-slugs-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.user-content-list::-webkit-scrollbar-thumb:hover,
.custom-slugs-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (max-width: 768px) {
    .content-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .slug-input-group {
        flex-direction: column;
    }
    
    .slug-input-group button {
        width: 100%;
    }
    
    .quick-publish-form {
        gap: 12px;
    }
    
    .custom-slug-selector {
        padding: 10px;
    }
    
    .slug-selector-label {
        font-size: 13px;
    }
}

/* === CONFIRMATION DIALOG === */
.confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog.show {
    display: flex;
}

.confirm-dialog-content {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
}

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

.confirm-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.confirm-title {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 15px;
}

.confirm-message {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 30px;
    white-space: pre-line;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel, .btn-confirm {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-confirm {
    background: var(--primary-grad);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-confirm.danger {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.btn-confirm.danger:hover {
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* === IMAGE UPLOAD SECTION === */
.image-upload-section {
    width: 100%;
    padding: 20px;
}

.image-upload-area {
    width: 100%;
    min-height: 250px;
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: #fff7ed;
}

.image-upload-area.drag-over {
    border-color: var(--primary);
    background: #fff7ed;
    transform: scale(1.02);
}

.upload-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.upload-placeholder svg {
    color: #9ca3af;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px;
}

.upload-hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.image-preview {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    object-fit: contain;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .image-upload-section {
        padding: 15px;
    }
    
    .image-upload-area {
        min-height: 200px;
    }
    
    .image-preview img {
        max-height: 200px;
    }
}

/* === OUR APPS SECTION === */
.our-apps-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #fff 0%, #fff8f5 100%);
}

.our-apps-container {
    max-width: 1100px;
    margin: 0 auto;
}

.our-apps-header {
    text-align: center;
    margin-bottom: 50px;
}

/* ── Apps grid: 3-col on desktop, 2-col tablet, 1-col mobile ── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.app-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.07);
    border: 1px solid rgba(249, 115, 22, 0.1);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.14);
}

.app-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px 22px 20px;
    flex: 1;
    position: relative;
}

/* Top row: icon + name/package side by side */
.app-card-top {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.app-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title-block {
    min-width: 0;
}

.app-name {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 3px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-package {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-tags {
    font-size: 11.5px;
    color: #9ca3af;
    margin-bottom: 14px;
    line-height: 1.5;
}

.play-store-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: block;
    width: 28px;
    height: 28px;
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.play-store-btn img {
    width: 100%;
    height: 100%;
}

.play-store-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Icon backgrounds */
.deepbell-icon { background: #0d1117; }
.rangeen-icon  { background: #3d1f8a; }
.scansnap-icon { background: linear-gradient(135deg, #0a0e1a 60%, #1a3a4a 100%); border: 2px solid #22d3ee; }
.driftclock-icon { background: #000; border: 2px solid #f97316; box-shadow: 0 0 10px rgba(249,115,22,.2); }
.gulplog-icon  { background: linear-gradient(135deg, #0d1b2a 0%, #0f2744 100%); border: 2px solid #06b6d4; }

@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .app-card-inner {
        padding: 18px;
    }

    .app-tags {
        justify-content: flex-start;
    }
}