/* Global Reset and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force Inter font for ALL elements */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input,
select,
textarea,
button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

:root {
    --primary-start: #0061ff;
    --primary-end: #00c2ff;
    --bg-light: #ffffff;
    --bg-gray: #f7f8fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border-light: #e5e7eb;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 97, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--bg-gray);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Login Page - Keep same as before */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
    border: 1px solid var(--border-light);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    width: auto;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 32px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
    white-space: nowrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

#googleSignInDiv {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    padding: 0 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.app-container.active {
    opacity: 1;
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-gray);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    margin-right: 40px;
    /* Compensate for menu button width to center the title */
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-light);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.sidebar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.3;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg-gray);
    border-left-color: var(--primary-start);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 97, 255, 0.1), rgba(0, 97, 255, 0.05));
    border-left-color: var(--primary-start);
    color: var(--primary-start);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Icon Image Styles */
.nav-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-item:hover .nav-icon-img {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active .nav-icon-img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(27%) sepia(94%) saturate(2464%) hue-rotate(215deg) brightness(104%) contrast(102%);
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout:hover {
    background: #fee;
    color: var(--error);
    border-color: #fecaca;
    transform: translateY(-1px);
}

.logout-icon {
    font-size: 16px;
}

.logout-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    position: relative;
    transition: var(--transition);
}

.main-content.has-footer {
    padding-bottom: 120px;
    /* Add space for config footer */
}

/* Alerts */
.alerts-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alert Icon Image Styles */
.alert-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: var(--transition);
}

/* Hide alert-icon for info alerts since they don't have icons */
.alert-info .alert-icon {
    display: none;
}

/* Adjust info alert layout since it has no icon */
.alert-info {
    gap: 0;
    padding-left: 20px;
}

.alert-success {
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
}

.alert-error {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
}

.alert-info {
    background: rgba(219, 234, 254, 0.95);
    color: #1e40af;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Header */
.content-header {
    margin-bottom: 32px;
}

.content-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.content-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Config Sections */
.config-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.config-section {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.section-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--bg-gray), #f1f5f9);
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Config Grid */
.config-grid {
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.config-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.config-card:hover {
    border-color: var(--primary-start);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.config-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.2);
    flex-shrink: 0;
}

/* Card Icon Image Styles */
.card-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(158deg) brightness(104%) contrast(104%);
    transition: var(--transition);
}

.config-card:hover .card-icon-img {
    transform: scale(1.1);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ===================================
   ORDER FORM - MODERN REDESIGN
   =================================== */

/* Modal Background with Gradient */
.order-modal-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

/* Order Section - White Card with Shadow */

/* Header */
.order-header {
    text-align: center;
    margin-bottom: 32px;
}

.order-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.order-subtitle {
    font-size: 14px;
    color: #6b7280;
}



/* Form Labels */
.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

/* Form Inputs - Rounded with Shadow */
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Style for readonly inputs */
.form-input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #e0e0e0;
    opacity: 0.85;
}

.form-input[readonly]:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.form-input[readonly]:focus {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    outline: none;
    box-shadow: none;
}

/* Style for hint text below readonly inputs */
.form-group:has(.form-input[readonly]) .form-hint {
    color: #888;
    font-style: italic;
}

/* Coupon Section */
.coupon-section {
    grid-column: 1 / -1;
}

.coupon-input-container {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.coupon-input-wrapper {
    flex: 1;
}

.coupon-btn {
    padding: 12px 24px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.coupon-btn:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Duration Selector */
.form-group.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.duration-option {
    position: relative;
}

.duration-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.duration-option label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 110px;
    height: 100%;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.duration-option input[type="radio"]:checked+label {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(33, 150, 243, 0.3);
}

.duration-option input[type="radio"]:checked+label .duration-period,
.duration-option input[type="radio"]:checked+label .duration-price {
    color: white;
}

.duration-option label:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
}

.duration-period {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    white-space: nowrap;
}

.duration-price {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

/* Popular Badge - HOT */
.popular-duration {
    position: relative;
}

.duration-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #EC407A, #E91E63);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(236, 64, 122, 0.4);
}

/* Pricing Summary - Blue Background */
.pricing-summary {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border: 2px solid #90CAF9;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
    padding: 6px 0;
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 4px;
    margin-top: 4px;
}

.summary-label {
    font-size: 14px;
    color: #1565C0;
    font-weight: 500;
}

.summary-value {
    font-size: 14px;
    color: #0D47A1;
    font-weight: 600;
}

/* Tier Indicator Badge */
.tier-indicator {
    display: inline-block;
    background: #2196F3;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;/
}

/* Submit Button - Gradient */
.form-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 640px) {
    .order-section {
        padding: 24px 20px;
    }

    .coupon-input-container {
        flex-direction: column;
    }

    .coupon-btn {
        width: 100%;
    }

    .order-title {
        font-size: 20px;
    }
}

/* Text Input Wrapper */
.text-input-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
}

.text-input-wrapper .form-input {
    flex: 1;
    cursor: pointer;
    background: #f9fafb;
}

.text-input-wrapper .form-input:hover {
    background: white;
}

.text-input-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.text-input-btn span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.text-input-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition);
}

.toggle-container:hover {
    border-color: var(--border-light);
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
}

input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Slider Styles */
.slider-container-compact {
    padding: 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition);
}

.slider-container-compact:hover {
    border-color: var(--border-light);
}

.slider-container-compact .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-container-compact .slider-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.slider-container-compact .slider-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-start);
    padding: 3px 10px;
    background: rgba(0, 97, 255, 0.1);
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-wrapper .slider-input {
    flex: 1;
}

.slider-mark-min,
.slider-mark-max {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.slider-input {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: var(--transition);
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.3);
    transition: var(--transition);
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.3);
    transition: var(--transition);
    border: none;
}

.slider-input:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.4);
}

.slider-input:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.4);
}

/* Webhook Form Styles */
.webhook-form {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.webhook-form:hover {
    border-color: var(--primary-start);
}

.webhook-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.webhook-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
}

.webhook-btn-test {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.webhook-btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.webhook-btn-test:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.webhook-btn-save {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.webhook-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.webhook-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    display: none;
    align-items: center;
    gap: 8px;
}

/* Webhook Status Icon */
.webhook-status-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Webhook Button Icon */
.webhook-btn-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.webhook-status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.webhook-status.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.webhook-status.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    display: block;
}

/* API Connection Form Styles */
.api-connection-form {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.api-connection-form:hover {
    border-color: var(--primary-start);
}

.api-connection-info {
    margin-bottom: 16px;
}

.api-connection-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.api-connection-details {
    margin-bottom: 16px;
}

.api-detail-item {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.api-detail-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.api-code-block {
    margin-top: 8px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    overflow-x: auto;
}

.api-code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.api-code-block strong {
    color: #dc2626;
    font-weight: 600;
}

.api-connection-notice {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius-sm);
    border: 1px solid #0ea5e9;
    font-size: 14px;
    color: #0c4a6e;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Fade In Animation */
.fade-in {
    animation: fadeInForm 0.3s ease;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* License Content */
.license-content {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.license-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.license-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.2);
}

/* License Icon Image Styles */
.license-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(158deg) brightness(104%) contrast(104%);
    transition: var(--transition);
}

.license-content:hover .license-icon-img {
    transform: scale(1.1);
}

.license-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.license-badge {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.license-grid {
    margin-bottom: 20px;
}

.license-info {
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius-lg);
    border: 2px solid #0ea5e9;
    margin: 20px 0;
    text-align: center;
}

.license-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
}

.license-notification-text {
    color: #0c4a6e;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.btn-get-keys {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 97, 255, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.btn-get-keys:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 97, 255, 0.4);
}

.btn-get-keys:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed #fb923c;
    margin: 20px 0;
}

.empty-state.show {
    display: block;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #ea580c;
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.empty-state-text {
    font-size: 14px;
    color: #9a3412;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.license-notice {
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Extension Content */
.extension-content {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.extension-hero {
    text-align: center;
    margin-bottom: 40px;
}

.extension-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.extension-description {
    text-align: left;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.extension-features {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-item:hover {
    box-shadow: 0 4px 16px rgba(0, 97, 255, 0.1);
    transform: translateY(-2px);
}


/* Feature Icon Image Styles */
.feature-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition);
}

.feature-item:hover .feature-icon-img {
    transform: scale(1.1);
}

.feature-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.extension-cta {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.extension-buttons-wrapper {
    display: flex;
    flex-direction: row;
    gap: 100px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.extension-buttons-wrapper>a {
    flex: 1;
    min-width: 250px;
    max-width: 370px;
}

.extension-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(0, 97, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    width: 100%;
}

.extension-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 32px rgba(0, 97, 255, 0.4);
}

.extension-button.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
    box-shadow: none;
}

.extension-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.extension-note {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Guide Content */
.guide-content {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.guide-intro {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.guide-intro p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.guide-intro p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-step-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.guide-step-card:hover {
    border-color: var(--primary-start);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.1);
}

.guide-step-card.active {
    border-color: var(--primary-start);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.15);
}

.guide-step-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-gray);
}

.guide-step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.guide-step-toggle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.guide-step-card.active .guide-step-toggle {
    background: var(--primary-start);
    color: white;
    transform: rotate(180deg);
}

.guide-step-content {
    padding: 20px;
    display: none;
    border-top: 1px solid var(--border-light);
    background: white;
}

.guide-step-card.active .guide-step-content {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 20px;
    }

    to {
        opacity: 1;
        max-height: 300px;
        padding: 20px;
    }
}

.guide-step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.guide-step-content p:last-child {
    margin-bottom: 0;
}

.guide-step-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guide-step-content ul {
    margin-left: 16px;
    margin-top: 8px;
}

.guide-step-content li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Config Footer */
.config-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 16px 40px;
    z-index: 200;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: none;
}

.config-footer.show {
    display: block;
}

.config-footer-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-save {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 97, 255, 0.4);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 97, 255, 0.5);
}

.btn-save:active {
    transform: translateY(-1px);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-save>* {
    position: relative;
    z-index: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Text Popup Styles - Keep existing styles */
.text-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.text-popup-overlay.active {
    display: flex;
}

.text-popup {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.text-popup-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-popup-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.text-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.text-popup-close:hover {
    background: #e5e7eb;
    color: var(--text-primary);
}

.text-popup-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.text-popup-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.text-popup-textarea {
    width: 100%;
    min-height: 400px;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    resize: vertical;
    transition: var(--transition);
    background: #f9fafb;
    flex: 1;
}

.text-popup-textarea:focus {
    outline: none;
    border-color: var(--primary-start);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}

.text-popup-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-popup-counter {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.text-popup-actions {
    display: flex;
    gap: 12px;
}

.text-popup-btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.text-popup-btn-save {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 97, 255, 0.3);
}

.text-popup-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 97, 255, 0.4);
}

.text-popup-btn-ai {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.text-popup-btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.text-popup-btn-ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.text-popup-btn-ai .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    display: inline-block;
    margin-left: 8px;
}

/* API Guide Popup */
.api-guide-popup {
    max-width: 700px;
}

.api-guide-body {
    max-height: 70vh;
    overflow-y: auto;
}

.api-guide-steps {
    margin-bottom: 32px;
}

.api-guide-step {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.api-guide-step:hover {
    border-color: var(--primary-start);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.1);
    transform: translateX(4px);
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.step-content a {
    color: var(--primary-start);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.step-content a:hover {
    color: var(--primary-end);
    text-decoration: underline;
}

.step-content strong {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.api-guide-pricing {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid #0ea5e9;
    margin-bottom: 24px;
}

.api-guide-pricing p {
    font-size: 14px;
    color: #0c4a6e;
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.api-guide-link {
    color: var(--primary-start);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px dashed var(--primary-start);
    display: inline-block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.api-guide-link:hover {
    color: var(--primary-end);
    border-bottom-style: solid;
    transform: translateY(-1px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-card {
    background: white;
    padding: 32px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 200px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-start);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    margin: 0;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    margin: 0;
    display: block;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Select Wrapper for dropdown */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-gray);
    padding-right: 40px;
}

/* Nav Group Styles */
.nav-group {
    margin-bottom: 8px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    background: var(--bg-gray);
    margin-bottom: 4px;
    border-radius: 8px;
}

.nav-group-header:hover {
    background: #e5e7eb;
}

.nav-group-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.nav-expand-icon {
    width: 6px;
    height: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(-90deg);
}

.expand-icon-img {
    width: 10px;
    height: 10px;
    object-fit: contain;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-group-header:hover .expand-icon-img {
    opacity: 1;
}

.nav-group:not(.collapsed) .nav-expand-icon {
    transform: rotate(0deg);
}

/* Collapsed state */
.nav-group.collapsed .nav-expand-icon {
    transform: rotate(-90deg);
}

/* Nav Group Items */
.nav-group-items {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        margin 0.3s ease;
    opacity: 1;
    margin-left: 24px;
    border-left: 2px solid #e5e7eb;
}

.nav-group+.nav-group {
    margin-top: 16px;
}

.nav-group.collapsed .nav-group-items {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Adjust nav-item inside group */
.nav-group-items .nav-item {
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2px;
    padding-left: 28px;
}

.nav-group-items .nav-item:hover {
    background: var(--bg-gray);
    border-left-color: var(--primary-start);
}

.nav-group-items .nav-item.active {
    background: linear-gradient(90deg, rgba(0, 97, 255, 0.1), rgba(0, 97, 255, 0.05));
    border-left-color: var(--primary-start);
    color: var(--primary-start);
}

/* Nav Group Mobile */
.nav-group-header {
    padding: 14px 20px;
    min-height: 48px;
}

.nav-group-items .nav-item {
    padding: 14px 20px 14px 28px;
    min-height: 48px;
}

/* Mobile Responsive - FIXED VERSION */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
        --mobile-header-height: 64px;
        /* Define mobile header height */
    }

    .mobile-header {
        display: flex;
        height: var(--mobile-header-height);
        /* Use variable */
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        top: 0;
        /* Start from top */
        height: 100vh;
        /* Full height */
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        /* Add better scrolling */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Ensure navigation takes remaining space but can scroll */
    .sidebar-nav {
        flex: 1;
        padding: 20px 0;
        min-height: 0;
        /* Allow flex shrinking */
        overflow-y: auto;
        /* Allow scrolling within nav if needed */
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile Sidebar Header - make it more compact */
    .sidebar-header {
        padding: 16px 20px;
        /* Reduced padding */
        border-bottom: 1px solid var(--border-light);
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
        flex-shrink: 0;
        /* Don't shrink */
        background: var(--bg-light);
        /* Ensure background */
        min-height: 60px;
        /* Minimum height */
    }

    .sidebar-logo {
        height: 32px;
        /* Slightly larger than before */
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        flex-shrink: 0;
    }

    .sidebar-title {
        display: none;
        /* Hide title on mobile */
    }

    /* Mobile Sidebar Footer - ensure it's always visible */
    .sidebar-footer {
        padding: 16px 20px 20px 20px;
        /* Add bottom padding */
        border-top: 1px solid var(--border-light);
        flex-shrink: 0;
        /* Don't shrink */
        background: var(--bg-light);
        margin-top: auto;
        /* Push to bottom */
        /* Ensure it's above bottom of screen */
        position: relative;
        z-index: 1;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding: 12px;
        background: var(--bg-gray);
        border-radius: var(--radius-md);
        /* Add subtle border to make it more visible */
        border: 1px solid var(--border-light);
    }

    .user-avatar {
        width: 40px;
        /* Slightly larger */
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--bg-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }

    .user-details {
        flex: 1;
        min-width: 0;
    }

    .user-name {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.3;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
        /* Add small spacing */
    }

    .user-email {
        font-size: 12px;
        /* Slightly larger */
        color: var(--text-secondary);
        line-height: 1.3;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-logout {
        width: 100%;
        padding: 14px 16px;
        /* Slightly more padding */
        background: transparent;
        color: var(--text-secondary);
        border: 2px solid var(--border-light);
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        /* Add touch target sizing */
        min-height: 48px;
    }

    .btn-logout:hover {
        background: #fee;
        color: var(--error);
        border-color: #fecaca;
        transform: translateY(-1px);
    }

    .btn-logout:active {
        transform: translateY(0);
        background: #fecaca;
    }

    .logout-icon {
        font-size: 16px;
    }

    .logout-text {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }

    /* Navigation items - ensure good touch targets */
    .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        /* Increase padding for better touch */
        cursor: pointer;
        transition: var(--transition);
        border-left: 3px solid transparent;
        margin-bottom: 4px;
        min-height: 48px;
        /* Ensure good touch target */
    }

    .nav-item:hover {
        background: var(--bg-gray);
        border-left-color: var(--primary-start);
    }

    .nav-item.active {
        background: linear-gradient(90deg, rgba(0, 97, 255, 0.1), rgba(0, 97, 255, 0.05));
        border-left-color: var(--primary-start);
        color: var(--primary-start);
    }

    .nav-icon {
        font-size: 20px;
        width: 24px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-text {
        font-size: 14px;
        font-weight: 500;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-top: calc(var(--mobile-header-height) + 20px);
        /* Use variable */
    }

    .main-content.has-footer {
        padding-bottom: 120px;
        /* Space for footer on mobile */
    }

    .config-footer {
        left: 0;
        padding: 16px 20px;
    }

    .config-footer-content {
        justify-content: center;
    }

    .config-footer .btn-save {
        width: 100%;
        max-width: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 48px;
        /* Good touch target */
    }

    .alerts-container {
        left: 20px;
        right: 20px;
        max-width: none;
        top: calc(var(--mobile-header-height) + 20px);
        /* Use variable */
    }

    .config-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .webhook-actions {
        flex-direction: column;
    }

    .webhook-btn {
        width: 100%;
        min-height: 48px;
        /* Good touch target */
    }

    .text-popup {
        margin: 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        /* Ensure it fits on screen */
    }

    .text-popup-textarea {
        min-height: 250px;
        /* Smaller on mobile */
    }

    .text-popup-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .text-popup-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .text-popup-btn {
        width: 100%;
        padding: 12px;
        min-height: 48px;
        /* Good touch target */
    }

    .section-header {
        padding: 20px;
    }

    .extension-content,
    .license-content,
    .guide-content {
        padding: 24px;
    }

    /* Improve scrolling on mobile */
    .sidebar,
    .sidebar-nav {
        scrollbar-width: thin;
        scrollbar-color: var(--border-light) transparent;
    }

    .sidebar::-webkit-scrollbar,
    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar::-webkit-scrollbar-track,
    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb,
    .sidebar-nav::-webkit-scrollbar-thumb {
        background: var(--border-light);
        border-radius: 2px;
    }

    /* Ensure sidebar overlay covers mobile header */
    .sidebar-overlay {
        top: 0;
        /* Cover entire screen including header */
    }

    /* Login page mobile adjustments */
    .login-card {
        padding: 32px 24px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .login-logo {
        height: 60px;
        margin-bottom: 24px;
    }

    .login-title {
        font-size: 20px;
        white-space: normal;
        /* Allow wrapping on mobile */
    }

    .login-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
}

/* ==================== LICENSE TABLE STYLES ==================== */

/* License Actions */
.license-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-refresh-all {
    padding: 10px 20px;
    background: #0061ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.btn-refresh-all:hover {
    background: #0052d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.btn-refresh-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* License Info Box */
.license-info-box {
    margin: 20px 0;
    padding: 16px 20px;
    background: #e6f0ff;
    border: 1px solid rgba(0, 97, 255, 0.3);
    border-radius: 12px;
}

.license-info-text {
    color: #003d99;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* License Table Wrapper */
.license-table-wrapper {
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* License Table */
.license-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.license-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.license-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.license-table .th-key {
    width: 40%;
}

.license-table .th-status {
    width: 20%;
}

.license-table .th-actions {
    width: 40%;
    text-align: right;
}

.license-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.license-table tbody tr:last-child {
    border-bottom: none;
}

.license-table tbody tr:hover {
    background: #f9fafb;
}

.license-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #6b7280;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.license-table td:last-child {
    text-align: right;
}

/* Key Text */
.key-text {
    display: block;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Status Badge - Design 1 style */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    text-transform: capitalize;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.on {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.off {
    background: #f3f4f6;
    color: #6b7280;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* License Actions Group */
.license-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
    padding: 0;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #0061ff;
    color: #0061ff;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-btn.loading svg {
    animation: spin 1s linear infinite;
}

.action-btn.success {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Flash Update Animation */
@keyframes flash-update {

    0%,
    100% {
        background: transparent;
    }

    50% {
        background: rgba(0, 97, 255, 0.1);
    }
}

.flash-update {
    animation: flash-update 1s ease;
}

/* Pagination */
.license-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px;
}

.license-pagination.hidden {
    display: none;
}

.pagination-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #0061ff;
    color: #0061ff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    padding: 0 16px;
}

.pagination-info span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 12px;
    border: 2px dashed #fb923c;
    margin: 20px 0;
}

.empty-state.show {
    display: block;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #ea580c;
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.empty-state-text {
    font-size: 14px;
    color: #9a3412;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.license-notice {
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Mobile Responsive for License Table */
@media (max-width: 768px) {
    .license-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .license-actions {
        width: 100%;
        justify-content: space-between;
    }

    .license-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .license-table {
        min-width: 600px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .pagination-info {
        padding: 0 8px;
    }
}

@keyframes flash-update {
    0% {
        background: transparent;
    }

    50% {
        background: rgba(0, 97, 255, 0.15);
        transform: scale(1.01);
    }

    100% {
        background: transparent;
    }
}

.flash-update {
    animation: flash-update 1s ease;
}

.license-table tbody tr {
    transition: all 0.3s ease;
}

/* ==================== NEW COMPONENTS ==================== */

/* Icon Legend */
.icon-legend {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.legend-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.legend-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legend-icon.copy {
    color: #0061ff;
}

.legend-icon.power {
    color: #f59e0b;
}

.legend-icon.change {
    color: #8b5cf6;
}

.legend-text {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Updated Action Buttons */
.action-btn.copy:hover {
    border-color: #0061ff;
    color: #0061ff;
    background: #eff6ff;
}

.action-btn.power:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: #fffbeb;
}

.action-btn.change:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: #f5f3ff;
}

.action-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* Regenerate Modal */
.regenerate-modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    padding-left: 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.modal-body {
    padding: 24px;
}

.warning-box {
    padding: 20px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    margin-bottom: 20px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.warning-icon {
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.warning-title {
    font-size: 15px;
    font-weight: 600;
    color: #991b1b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.warning-list {
    padding-left: 20px;
    margin-top: 8px;
}

.warning-list li {
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 6px;
    line-height: 1.4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.info-box {
    padding: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: #0284c7;
    flex-shrink: 0;
    margin-top: 2px;
}

.key-display-box {
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.key-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.key-value {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.6;
}

.confirm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-checkbox:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.confirm-checkbox.checked {
    background: #fef2f2;
    border-color: #fecaca;
}

.confirm-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
}

.confirm-label {
    flex: 1;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.modal-btn-cancel {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.modal-btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.modal-btn-confirm {
    background: #ef4444;
    color: white;
    border: 2px solid #ef4444;
}

.modal-btn-confirm:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Modal */
.success-modal {
    background: white;
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-header {
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #166534;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.success-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.success-body {
    padding: 24px;
}

.new-key-section {
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    margin-bottom: 20px;
}

.new-key-label {
    font-size: 13px;
    color: #0c4a6e;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.new-key-value {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #0c4a6e;
    font-weight: 700;
    word-break: break-all;
    line-height: 1.8;
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
}

.copy-new-key-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0061ff, #00c2ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.copy-new-key-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 97, 255, 0.4);
}

.copy-new-key-btn.copied {
    background: #22c55e;
}

.success-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
}

.success-note {
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
    margin-bottom: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.close-success-btn {
    width: 100%;
    padding: 10px;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.close-success-btn:hover {
    background: #e5e7eb;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flash update animation */
@keyframes flash-update {

    0%,
    100% {
        background: transparent;
    }

    50% {
        background: rgba(0, 97, 255, 0.1);
    }
}

.flash-update {
    animation: flash-update 1s ease;
}

/* Responsive for new components */
@media (max-width: 768px) {
    .legend-items {
        grid-template-columns: 1fr;
    }

    .regenerate-modal,
    .success-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ==================== MODAL OVERLAY - BASE STYLES ==================== */

/* Modal Overlay - cho regenerate và success modals */

@media (max-width: 968px) {
    .modal-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.order-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Regenerate Modal */
.regenerate-modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Success Modal */
.success-modal {
    background: white;
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive cho modals */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }

    .regenerate-modal,
    .success-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Success Header - relative position cho button X */
.success-header {
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    /* THÊM */
}

/* Button X góc phải */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close-btn:hover {
    background: #e5e7eb;
    color: #1a1a1a;
    transform: rotate(90deg);
}

/* Key display - ẩn key */
.new-key-value {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 18px;
    /* Tăng size cho dễ đọc */
    color: #0c4a6e;
    font-weight: 700;
    letter-spacing: 2px;
    /* THÊM spacing cho xxxx */
    word-break: break-all;
    line-height: 1.8;
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
}

/* Success footer - chỉ hiển thị note */
.success-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
}

.success-note {
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 13px;
    color: #0c4a6e;
    line-height: 1.5;
    margin: 0;
    /* Remove margin-bottom */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ===================== END OF Modal CSS ==================== */

/* css for disabled button  */
/* Disabled action buttons khi key OFF */
.action-btn.disabled,
.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    /* Chặn click hoàn toàn */
}

.action-btn.disabled:hover {
    background: white;
    border-color: #e5e7eb;
    color: #6b7280;
    transform: none;
}

/* ===================================
   PRICING TAB - COMPACT VERSION
   =================================== */
/* ===================================
   PRICING TAB - CHATGPT STYLE
   =================================== */

/* Container */
.pricing-cards-container {
    max-width: 1280px;
    margin: 0 auto 48px auto;
    padding: 0 16px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Pricing Card */
.pricing-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Popular Card */
.pricing-card-popular {
    border: 2px solid #2563eb;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Pricing Content (Features area) */
.pricing-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.pricing-description {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Features List */
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-check {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1.5;
}

.feature-plus {
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.5;
}

.feature-text {
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
}

.feature-special .feature-text {
    font-weight: 500;
    color: #111827;
}

/* Pricing Footer (Price + Button) */
.pricing-footer {
    margin-top: auto;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}

.price-unit {
    font-size: 13px;
    color: #6b7280;
}

.pricing-range {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* CTA Buttons */
.pricing-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-cta:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.pricing-cta:active {
    transform: translateY(0);
}

/* Primary CTA (Pro plan) */
.pricing-cta-primary {
    background: #2563eb;
}

.pricing-cta-primary:hover {
    background: #1d4ed8;
}

/* Button Arrow Icon */
.btn-arrow {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Custom Notice */
.custom-notice {
    max-width: 1280px;
    margin: 0 auto 48px auto;
    padding: 0 16px;
    text-align: center;
}

.custom-notice-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.custom-notice-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.custom-notice-link:hover {
    text-decoration: underline;
}

/* ===================================
   ORDER MODAL OVERLAY
   =================================== */


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.order-modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
    transform: scale(1.1);
}

.order-modal-close svg {
    width: 20px;
    height: 20px;
}


/* Mobile responsive */
@media (max-width: 768px) {
    .order-modal-overlay {
        padding: 10px;
    }

    .order-modal-close {
        top: 10px;
        right: 10px;
    }

    .order-modal-container {
        width: calc(100% - 20px);
    }

    .order-modal-overlay .order-section {
        max-height: calc(100vh - 60px);
    }
}

.order-header {
    margin-bottom: 20px;
}

.order-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.order-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-cards-container {
        margin-bottom: 32px;
    }

    .pricing-card {
        padding: 16px;
    }

    .pricing-name {
        font-size: 16px;
    }

    .price-amount {
        font-size: 24px;
    }

    .custom-notice {
        margin-bottom: 32px;
    }

    .order-section {
        padding: 20px;
    }
}

/* ===================================
   ORDER MODAL
   =================================== */

.order-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.order-modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
    z-index: 10;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

/* PROGRESS BAR */
.progress-bar-container {
    width: 100%;
    padding: 10px 2px 10px;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/*THANKYOU PROGRESS BAR */
.thankyou-progress-bar-container {
    width: 100%;
    padding: 10px 2px 10px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.step-circle.completed {
    background: #22c55e;
    color: white;
}

.step-circle.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.step-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #22c55e;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 -4px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.progress-line.completed {
    background: #22c55e;
}

/* LEFT SECTION */
.left-section {
    flex: 1;
    min-width: 500px;
    padding: 32px 40px;
    background: white;
}

/* RIGHT SECTION */
.right-section {
    flex: 0 0 400px;
    padding: 32px 35px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
}

/* FORM STYLES */
.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    margin-top: 24px;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.required {
    color: #ef4444;
}

.form-input {
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
}

/* COUPON */
.coupon-group {
    display: flex;
    gap: 10px;
}

.coupon-group .form-input {
    flex: 1;
}

.btn-check {
    padding: 11px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.btn-check:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* PLAN GRID */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.plan-option {
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: white;
}

.plan-option:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Required Label - Simple Version */
.form-label-required::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
    font-size: 14px;
}

.plan-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.plan-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    background: #ef4444;
    color: white;
}

.plan-duration {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.plan-discount {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
}

.discount-none {
    color: #6b7280;
    background: #f3f4f6;
}

.discount-medium {
    color: #059669;
    background: #d1fae5;
}

.discount-high {
    color: #dc2626;
    background: #fee2e2;
}

/* RIGHT SECTION - Summary */
.order-header {
    margin-bottom: 24px;
}

.order-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.order-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #6b7280;
    font-weight: 400;
}

.summary-value {
    font-weight: 600;
    color: #111827;
}

.package-badge {
    display: inline-flex;
    padding: 4px 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #1e40af;
}

/* TOTAL SECTION */
.total-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #3b82f6;
}

.total-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.total-amount {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #3b82f6;
}

.total-currency {
    font-size: 20px;
    margin-left: 2px;
}

/* CHECKOUT BUTTON */
.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}

/* ERROR BOX */
.form-error-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
    display: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.form-error.show {
    display: block;
}

.error-icon {
    font-size: 24px;
}

.error-content {
    flex: 1;
}

.error-title {
    font-size: 15px;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 8px;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

.error-list li {
    font-size: 13px;
    color: #991b1b;
    margin-bottom: 4px;
}

.error-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #991b1b;
    cursor: pointer;
}

.form-input.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .modal-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .progress-bar-container {
        padding: 24px 20px 20px;
    }

    .progress-line {
        width: 40px;
    }

    .step-label {
        font-size: 11px;
    }

    .left-section {
        min-width: auto;
        padding: 24px 20px;
    }

    .right-section {
        flex: 1;
        padding: 24px 20px;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== PAYMENT MODAL - 3 COLUMNS ==================== */

.payment-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    padding: 20px;
    overflow-y: hidden;
    align-items: center;
    justify-content: center;
}

.payment-modal-overlay.active {
    display: flex;
}

.payment-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    padding: 32px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

}

.payment-close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(252, 252, 252, 100);
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.payment-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Success Header */
.payment-success-header {
    border-radius: 16px;
    padding: 20px 40px;
    margin-bottom: 12px;
    text-align: center;
}

.payment-success-title {
    color: #22c55e;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-success-description {
    color: #3b82f6;
    font-size: 14px;
    line-height: 1.6;
}

/* Payment Grid - 3 Columns */
.payment-grid {
    display: grid;
    grid-template-columns: 360px 1fr 360px;
    gap: 24px;
    margin-bottom: 16px;
}

/* Column Styles */
.payment-qr-column,
.payment-bank-column,
.payment-order-column {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    max-height: 520px;
    display: flex;
    flex-direction: column;
}

.payment-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.payment-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

/* QR Column */
.payment-qr-container {
    text-align: center;
}

.payment-qr-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.payment-qr-hint {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Bank Column */
.payment-bank-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F8FBFF;
    border: 2px solid #DBEAFE;
    border-radius: 12px;
    transition: all 0.2s;
}

.payment-bank-item:hover {
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.payment-bank-label {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
}

.payment-bank-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-bank-value span {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    font-family: 'Monaco', 'Courier New', monospace;
}

.payment-copy-btn {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.payment-copy-btn:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Order Column */
.payment-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0px;
}

.payment-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #F3F4F6;
    min-height: 32px;
}


.payment-label {
    font-size: 12px;
    color: #6B7280;
}

.payment-value {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.payment-total {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 2px solid #3B82F6;
    border-radius: 12px;
    padding: 16px !important;
    margin-top: 8px;
    padding: 10px !important;
}

.payment-amount {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #3B82F6 !important;
}

.payment-notice {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 8px;
    padding: 10px;
    margin-top: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.payment-notice p {
    font-size: 11px;
    color: #92400E;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

/* Check Payment Button */
.payment-check-container {
    text-align: center;
}

.payment-check-btn {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.payment-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.payment-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .payment-qr-column {
        order: 1;
    }

    .payment-bank-column {
        order: 2;
    }

    .payment-order-column {
        order: 3;
    }
}

@media (max-width: 768px) {
    .payment-modal-content {
        padding: 24px 20px;
    }

    .payment-success-header {
        padding: 20px 24px;
    }

    .payment-success-title {
        font-size: 24px;
    }
}

/* Form Error Box in Modal */
.form-error-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-error-box .error-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.form-error-box .error-content {
    flex: 1;
}

.form-error-box .error-title {
    font-size: 15px;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 8px;
}

.form-error-box .error-list {
    margin: 0;
    padding-left: 20px;
}

.form-error-box .error-list li {
    font-size: 13px;
    color: #991b1b;
    margin-bottom: 4px;
    line-height: 1.4;
}

.form-error-box .error-list li:last-child {
    margin-bottom: 0;
}

.form-error-box .error-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #991b1b;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.form-error-box .error-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Highlight error inputs */
.form-input.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Modal overlays cho regenerate và success */
.regenerate-modal-overlay,
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    /* Ẩn mặc định */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.regenerate-modal-overlay.active,
.success-modal-overlay.active {
    display: flex;
    /* Chỉ hiện khi có .active */
}

/* ==================== THANK YOU TAB CONTENT ==================== */

.thankyou-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.thankyou-success-section {
    background: white;
    border-radius: 24px;
    padding: 40px 40px;
    position: relative;
    text-align: center;
}

.thankyou-success-section::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.05;
}

.thankyou-success-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 10px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
    animation: thankyouPulse 2s ease-in-out infinite;
}

.thankyou-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes thankyouPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.thankyou-success-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.thankyou-order-id {
    font-weight: 800;
    color: #0061ff;
    background: linear-gradient(135deg, rgba(0, 97, 255, 0.1), rgba(0, 194, 255, 0.1));
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.thankyou-success-description {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

.thankyou-success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.thankyou-btn-home,
.thankyou-btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.thankyou-btn-home {
    background: linear-gradient(135deg, #0061ff, #00c2ff);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 97, 255, 0.3);
}

.thankyou-btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 97, 255, 0.4);
}

.thankyou-btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.thankyou-btn-secondary:hover {
    border-color: #0061ff;
    color: #0061ff;
    transform: translateY(-2px);
}

/* Additional Info */
.thankyou-additional-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.thankyou-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thankyou-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thankyou-info-list li {
    padding: 8px 0;
    color: #0c4a6e;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.thankyou-info-list li::before {
    content: '•';
    color: #0ea5e9;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .thankyou-content {
        padding: 24px;
    }

    .thankyou-success-section {
        padding: 40px 24px;
    }

    .thankyou-success-title {
        font-size: 24px;
    }

    .thankyou-success-description {
        font-size: 16px;
    }

    .thankyou-success-actions {
        flex-direction: column;
    }

    .thankyou-btn-home,
    .thankyou-btn-secondary {
        width: 100%;
    }
}

/* COUPON FEEDBACK */
.coupon-feedback {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coupon-feedback.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.coupon-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.coupon-feedback::before {
    margin-right: 6px;
}

.coupon-feedback.success::before {
    content: '✓';
}

.coupon-feedback.error::before {
    content: '✕';
}

.btn-check .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   SWOT TAB STYLES
   =================================== */

/* SWOT Main Content - Full Width */
#swotTab .main-content {
    padding: 40px;
}

#swotTab .content-wrapper {
    padding: 0px;
}

.swot-form-container,
.swot-results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
    align-items: stretch;
    height: calc(90vh - 40px);
    max-height: calc(90vh - 40px);
}

/* SWOT Results Container - 2 Column Layout */
.swot-results-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    height: calc(90vh - 40px);
    max-height: calc(90vh - 40px);
    overflow: hidden;
}

/* Left Column - Product Info Sidebar */
.swot-product-info-sidebar {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(0, 97, 255, 0.1);
    overflow-y: visible;
    height: 100%;
    transition: all 0.3s ease;
}

.swot-product-info-sidebar:hover {
    border-color: rgba(0, 97, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 97, 255, 0.15);
}

.swot-results-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(0, 97, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.swot-results-content:hover {
    border-color: rgba(0, 97, 255, 0.2);
}

.swot-product-info-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
}

.swot-product-info-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-start);
}

.swot-product-info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-start);
    margin-bottom: 4px;
}

.swot-product-info-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swot-info-section {
    margin-bottom: 12px;
}

.swot-info-section:last-child {
    margin-bottom: 0;
}

/* Hide all info sections by default when card is collapsed */
.swot-product-info-card.collapsed .swot-info-section {
    display: none;
}

/* Show only product name section when collapsed */
.swot-product-info-card.collapsed .swot-info-section:first-of-type {
    display: block;
}

.swot-info-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.swot-info-value {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    word-wrap: break-word;
}

/* Toggle button for product info card */
.swot-product-info-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-top: 12px;
    background: var(--primary-start);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swot-product-info-toggle:hover {
    background: #0051cc;
    transform: translateY(-1px);
}

.swot-product-info-toggle i {
    transition: transform 0.3s ease;
}

.swot-product-info-card.collapsed .swot-product-info-toggle i {
    transform: rotate(0deg);
}

.swot-product-info-card:not(.collapsed) .swot-product-info-toggle i {
    transform: rotate(180deg);
}

.swot-panel-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f9ff;
}

.swot-panel-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.swot-panel-header p {
    font-size: 14px;
    color: #6b7280;
}

/* Right Column - Results Content */
.swot-results-content {
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding: 0;
    background: var(--bg-gray);
    position: relative;
}

.swot-results-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 28px 12px;
    border-bottom: 2px solid #f0f9ff;
    flex-shrink: 0;
}

.swot-results-nav.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.swot-results-nav-tabs {
    display: flex;
    gap: 0;
}

.swot-results-nav-actions {
    display: flex;
    gap: 8px;
}

.swot-btn-export {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0061ff, #00c2ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.swot-btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 97, 255, 0.4);
}

.swot-btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.swot-result-nav-btn {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
}

.swot-result-nav-btn:hover {
    color: var(--primary-start);
    background: rgba(0, 97, 255, 0.05);
}

.swot-result-nav-btn.active {
    color: var(--primary-start);
    border-bottom-color: var(--primary-start);
}

#swotAnalysisView,
#swotStrategyView,
#swotMarketingView {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

/* SWOT Form Container */
.swot-form-container {
    display: block;
    height: auto;
    max-height: none;
}

.swot-left-panel {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 97, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow-y: visible;
}

.swot-left-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 97, 255, 0.15);
    border-color: rgba(0, 97, 255, 0.2);
}

.swot-right-info-panel {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    overflow-y: visible;
}

.swot-right-info-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 97, 255, 0.15);
    border-color: rgba(0, 97, 255, 0.2);
}

.swot-form-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.swot-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.swot-form-row-full {
    grid-template-columns: 1fr;
}

.swot-form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.swot-btn-analyze {
    padding: 16px 40px;
    background: linear-gradient(135deg, #0061ff, #00c2ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 97, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.swot-btn-analyze:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 97, 255, 0.45);
}

.swot-btn-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SWOT Analysis Grid 2x2 */
.swot-analysis-grid,
.swot-strategy-grid,
.swot-marketing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0;
}

.swot-analysis-card,
.swot-strategy-card,
.swot-marketing-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: none;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    min-height: 300px;
}

.swot-analysis-card:hover,
.swot-strategy-card:hover,
.swot-marketing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(0, 97, 255, 0.3);
}

.swot-analysis-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: var(--transition);
    min-height: 400px;
    overflow: hidden;
}

.swot-analysis-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-start);
}

.swot-analysis-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-start);
}

.swot-analysis-title {
    font-size: 20px;
    color: var(--primary-start);
    font-weight: 700;
    margin-bottom: 6px;
}

.swot-analysis-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.swot-analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.swot-analysis-item {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.swot-analysis-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.swot-analysis-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.swot-strengths .swot-analysis-item::before {
    background: #22c55e;
}

.swot-weaknesses .swot-analysis-item::before {
    background: #f59e0b;
}

.swot-opportunities .swot-analysis-item::before {
    background: #3b82f6;
}

.swot-threats .swot-analysis-item::before {
    background: #ef4444;
}

/* Strategy Grid */
.swot-strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.swot-strategy-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: var(--transition);
    min-height: 400px;
    overflow: hidden;
}

.swot-strategy-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-start);
}

.swot-strategy-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-start);
}

.swot-strategy-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-start);
    margin-bottom: 8px;
}

.swot-strategy-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.swot-strategy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swot-strategy-item {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.swot-strategy-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.swot-strategy-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-start);
}

/* Marketing Grid */
.swot-marketing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.swot-marketing-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
}

.swot-marketing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-start);
}

.swot-marketing-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-start);
}

.swot-marketing-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-start);
    margin-bottom: 6px;
}

.swot-marketing-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.swot-marketing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swot-marketing-item {
    padding: 14px 0 14px 24px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.swot-marketing-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.swot-marketing-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-start);
}

/* Responsive for SWOT Tab */
@media (max-width: 1024px) {
    .swot-results-container {
        grid-template-columns: 1fr;
        height: auto;
        margin-bottom: 10px;
    }

    .swot-product-info-sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .swot-results-content {
        height: auto;
        padding: 0;
    }

    .swot-analysis-grid,
    .swot-strategy-grid,
    .swot-marketing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .swot-form-card {
        padding: 24px;
    }

    .swot-form-row {
        grid-template-columns: 1fr;
    }

    .swot-btn-analyze {
        width: 100%;
    }

    .swot-analysis-card,
    .swot-strategy-card {
        min-height: auto;
    }

    .swot-results-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .swot-results-nav-tabs {
        overflow-x: auto;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 8px;
    }

    .swot-results-nav-actions {
        padding: 12px 0;
    }

    .swot-btn-export {
        flex: 1;
    }
}

/* SWOT Product Description - Expandable Text */
.swot-info-value.expandable {
    position: relative;
}

.swot-info-value.expandable.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swot-info-value.expandable.expanded {
    display: block;
}

.swot-expand-btn {
    display: inline-block;
    color: var(--primary-start);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    padding: 4px 0;
    border: none;
    background: none;
    transition: var(--transition);
    text-decoration: none;
}

.swot-expand-btn:hover {
    color: var(--primary-end);
    text-decoration: underline;
}

.swot-expand-btn::after {
    content: ' ▼';
    font-size: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.swot-expand-btn.expanded::after {
    transform: rotate(180deg);
}

.form-textarea {
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
    height: 500px;
    min-height: 200px;
}

.form-textarea.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}


.form-textarea:focus {
    outline: none;
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* SWOT No Access Message */
.swot-no-access-message {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.no-access-card {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

.no-access-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.no-access-title {
    font-size: 24px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 16px;
}

.no-access-text {
    font-size: 16px;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: 32px;
}

.no-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.no-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

/* ===================================
   SWOT FORM - ENHANCED SELECT STYLES
   =================================== */

/* Select Wrapper - Enhanced */
.swot-form-card .select-wrapper {
    position: relative;
    width: 100%;
}

.swot-form-card .select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
    transition: all 0.3s ease;
}

.swot-form-card .select-wrapper:hover::after {
    border-top-color: #3b82f6;
}

/* Select Input - Enhanced */
.swot-form-card .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.5;
}

/* Placeholder Option Style */
.swot-form-card .select-wrapper select option[value=""] {
    color: #9ca3af;
    font-style: italic;
}

/* Regular Options Style */
.swot-form-card .select-wrapper select option {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: white;
    line-height: 1.6;
}

/* Select Focus State */
.swot-form-card .select-wrapper select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

/* Select Hover State */
.swot-form-card .select-wrapper select:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Error State */
.swot-form-card .select-wrapper select.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.swot-form-card .select-wrapper select.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Disabled State */
.swot-form-card .select-wrapper select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Firefox-specific styles for options */
@-moz-document url-prefix() {
    .swot-form-card .select-wrapper select option {
        padding: 8px 12px;
    }
}

/* ===================================
   FORM GROUP ENHANCEMENTS FOR SELECT
   =================================== */

.swot-form-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swot-form-card .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Required Asterisk */
.swot-form-card .form-label-required::after {
    content: '*';
    color: #ef4444;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

/* Form Hint Text */
.swot-form-card .form-hint {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 4px;
}

/* ===================================
   RESPONSIVE FOR SELECT
   =================================== */
@media (max-width: 1024px) {

    .swot-form-container,
    .swot-results-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        gap: 24px;
    }

    .swot-left-panel,
    .swot-right-info-panel {
        height: auto;
        max-height: none;
        overflow-y: visible;
    }

    .swot-product-info-sidebar {
        height: auto;
        max-height: none;
        overflow-y: visible;
    }

    .swot-results-content {
        height: auto;
        max-height: 500px;
    }

    .swot-analysis-grid,
    .swot-strategy-grid,
    .swot-marketing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-textarea {
        height: 300px !important;
    }

    .info-tip {
        display: block !important;
        padding: 10px;
    }

    #swotTab .main-content {
        padding: 20px;
        padding-bottom: 80px !important;
    }

    .swot-left-panel,
    .swot-right-info-panel,
    .swot-product-info-sidebar {
        padding: 20px;
    }

    .swot-form-container {
        padding-bottom: 40px;
    }


    .swot-form-card .form-row {
        grid-template-columns: 1fr;
    }

    .swot-btn-analyze {
        width: 100%;
    }

    .swot-results-nav {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }

    .swot-results-nav-tabs {
        overflow-x: auto;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 8px;
    }

    .swot-results-nav-actions {
        display: none;
    }

    .swot-marketing-card,
    .swot-analysis-card,
    .swot-strategy-card {
        overflow: visible;
        min-height: auto;
    }

    .swot-analysis-list {
        max-height: none;
        overflow-y: visible;
    }
}

/* Scrollbar cho các panels */
.swot-left-panel::-webkit-scrollbar,
.swot-right-info-panel::-webkit-scrollbar,
.swot-product-info-sidebar::-webkit-scrollbar,
.swot-results-content::-webkit-scrollbar,
#swotAnalysisView::-webkit-scrollbar,
#swotStrategyView::-webkit-scrollbar,
#swotMarketingView::-webkit-scrollbar {
    width: 8px;
}

.swot-left-panel::-webkit-scrollbar-thumb,
.swot-right-info-panel::-webkit-scrollbar-thumb,
.swot-product-info-sidebar::-webkit-scrollbar-thumb,
.swot-results-content::-webkit-scrollbar-thumb,
#swotAnalysisView::-webkit-scrollbar-thumb,
#swotStrategyView::-webkit-scrollbar-thumb,
#swotMarketingView::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .swot-form-card .select-wrapper select {
        padding: 14px 40px 14px 16px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .swot-form-card .select-wrapper select option {
        font-size: 16px;
    }
}

/* ===================================
   ANIMATION FOR DROPDOWN ARROW
   =================================== */

.swot-form-card .select-wrapper select:focus~.select-arrow,
.swot-form-card .select-wrapper:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Add smooth transition when opening */
.swot-form-card .select-wrapper select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   CUSTOM SCROLLBAR FOR LONG LISTS
   =================================== */

.swot-form-card .select-wrapper select {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.swot-form-card .select-wrapper select::-webkit-scrollbar {
    width: 8px;
}

.swot-form-card .select-wrapper select::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.swot-form-card .select-wrapper select::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.swot-form-card .select-wrapper select::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Simple fix - Equal height for all inputs */
.swot-form-card .form-input,
.swot-form-card .select-wrapper select {
    height: 48px !important;
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.swot-form-card .select-wrapper select {
    padding-right: 40px;
    /* Space for arrow */
}

/* Textarea exception */
.swot-form-card .form-textarea {
    height: auto !important;
    min-height: 150px;
    padding: 12px 16px;
}

.ai-warning-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

.ai-warning-message .warning-text {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* Success variant for AI Warning Message */
.ai-warning-message.success {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
}

.ai-warning-message.success .warning-text {
    color: #166534 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   ADS CHECKER TAB - NEW DESIGN
   =================================== */





@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.8;
    }
}

.header-icon-wrapper svg {
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 97, 255, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(0, 97, 255, 0.4);
    }
}

/* Main Content Layout */
.ads-checker-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    align-items: stretch;
    height: calc(90vh - 110px);
}

.ads-left-panel,
.ads-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

@media (max-width: 1024px) {
    .ads-checker-main-content {
        flex-direction: column;
    }

    .ads-left-panel,
    .ads-right-panel {
        height: auto;
    }
}

/* Left Panel - Form */
.ads-left-panel {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 97, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow-y: visible;
    overflow-x: visible;
}

.ads-left-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 97, 255, 0.15);
    border-color: rgba(0, 97, 255, 0.2);
}

.ads-panel-header {
    margin-bottom: 9px;
    padding-bottom: 3px;
    border-bottom: 2px solid #f0f9ff;
}

.ads-panel-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.ads-panel-header p {
    font-size: 14px;
    color: #6b7280;
}

/* Form Styles */
.ads-form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.ads-content-group {
    margin-bottom: 8px;
}

.ads-content-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.label-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.label-icon {
    font-size: 18px;
}

.char-count {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Textarea Wrapper */
.textarea-wrapper {
    position: relative;
}

.ads-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.ads-textarea:focus {
    outline: none;
    border-color: #0061ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}

.ads-textarea.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.textarea-tools {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.clear-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Submit Button */
.ads-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0061ff, #00c2ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 97, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ads-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 97, 255, 0.45);
}

.ads-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ads-submit-btn .spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* AI Loader Animation */
.ai-loader {
    position: relative;
    width: 50px;
    height: 50px;
}

.ai-core {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: pulse-core 1.5s ease-in-out infinite;
}

@keyframes pulse-core {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.ai-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.ai-ring.ring-1 {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    animation: ring-rotate 2s linear infinite;
}

.ai-ring.ring-2 {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    animation: ring-rotate 3s linear infinite reverse;
}

.ai-ring.ring-3 {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    animation: ring-rotate 4s linear infinite;
}

@keyframes ring-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Right Panel - Results */
.ads-right-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow: visible;
}

.ads-result-content,
.ads-suggestion-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding: 0;
    min-height: 0;
}

@media (max-width: 1024px) {
    .ads-right-panel {
        height: auto;
    }

    .ads-result-section,
    .ads-suggestion-section {
        flex: none;
        height: auto;
        min-height: 400px;
    }
}

.ads-result-section,
.ads-suggestion-section {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(0, 97, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(50% - 12px);
}

.ads-result-html,
.ads-suggestion-html {
    font-size: 14px;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 100%;
    height: 100%;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.ads-result-html::-webkit-scrollbar,
.ads-suggestion-html::-webkit-scrollbar {
    width: 8px;
}

.ads-result-html::-webkit-scrollbar-thumb,
.ads-suggestion-html::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 6px;
}

.ads-result-html::-webkit-scrollbar-thumb:hover,
.ads-suggestion-html::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

@media (max-width: 1024px) {
    .ads-checker-main-content {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .ads-left-panel,
    .ads-right-panel {
        height: auto;
        max-height: none;
    }
}

.ads-result-section:hover,
.ads-suggestion-section:hover {
    border-color: rgba(0, 97, 255, 0.2);
}

.ads-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f9ff;
    flex-shrink: 0;
}

.ads-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.section-icon {
    font-size: 20px;
}

/* Status Badge */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.status-badge.checking {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: #fbbf24;
}

.status-badge.success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border-color: #22c55e;
}

.status-badge.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: #f59e0b;
}

.status-badge.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #ef4444;
}

/* Empty State */
.ads-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.ads-empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.ads-empty-state p {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
}

.ads-empty-state small {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

/* Tips Section */
.ads-tips-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 12px;
    border: 2px solid #0ea5e9;
    padding: 10px 14px;
    border: 1.5px solid #0ea5e9;
}

.ads-tips-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #0c4a6e;
}

.ads-tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ads-tips-section li {
    padding: 5px 0 5px 28px;
    color: #075985;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    padding: 6px 0 6px 20px;
    color: #075985;
    font-size: 11px;
    line-height: 1.5;
    position: relative;
}

.ads-tips-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: 600;
    font-size: 14px;
    top: 4px;
}

.ads-tips-section li strong {
    font-weight: 600;
    color: #0c4a6e;
}

/* Responsive */
@media (max-width: 1024px) {
    .ads-checker-main-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .ads-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .ads-left-panel,
    .ads-result-section,
    .ads-suggestion-section {
        padding: 20px;
    }

    .ads-right-panel {
        margin-bottom: 20px;
    }

    .ads-panel-header h3 {
        font-size: 18px;
    }

    .header-icon-wrapper {
        width: 56px;
        height: 56px;
    }
}

/* ===================================
   ADS CHECKER FORM - SELECT STYLES
   =================================== */

/* Form Row for Ads Checker */
.ads-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Form Group */
.ads-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ads-form .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0;
}

.ads-form .label-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Select Wrapper */
.ads-form .select-wrapper {
    position: relative;
    width: 100%;
}

.ads-form .select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ads-form .select-wrapper:hover::after {
    border-top-color: #0061ff;
}

/* Select Input */
.ads-form .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Placeholder Option */
.ads-form .select-wrapper select option[value=""] {
    color: #9ca3af;
    font-style: italic;
}

/* Regular Options */
.ads-form .select-wrapper select option {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: white;
    line-height: 1.6;
}

/* Focus State */
.ads-form .select-wrapper select:focus {
    outline: none;
    border-color: #0061ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}

/* Hover State */
.ads-form .select-wrapper select:hover {
    border-color: #0061ff;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Error State */
.ads-form .select-wrapper select.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.ads-form .select-wrapper select.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Disabled State */
.ads-form .select-wrapper select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Dropdown Arrow Animation */
.ads-form .select-wrapper select:focus~::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Custom Scrollbar for Long Lists */
.ads-form .select-wrapper select {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.ads-form .select-wrapper select::-webkit-scrollbar {
    width: 8px;
}

.ads-form .select-wrapper select::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.ads-form .select-wrapper select::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.ads-form .select-wrapper select::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===================================
   RESPONSIVE FOR ADS FORM SELECT
   =================================== */

@media (max-width: 768px) {
    .ads-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ads-form .select-wrapper select {
        font-size: 16px;
        /* Prevent zoom on iOS */
        padding: 0 40px 0 16px;
    }

    .ads-form .select-wrapper select option {
        font-size: 16px;
    }
}

/* Firefox-specific styles */
@-moz-document url-prefix() {
    .ads-form .select-wrapper select option {
        padding: 8px 12px;
    }
}

.panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    gap: 16px;
}

.panel-loading p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    animation: loadingTextPulse 2s ease-in-out infinite;
}

.mini-ai-loader {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-core {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle,
            rgba(0, 194, 255, 1) 0%,
            rgba(0, 97, 255, 0.8) 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.6);
    animation: miniCorePulse 1.5s ease-in-out infinite;
}

@keyframes miniCorePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 194, 255, 0.6);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(0, 194, 255, 0.8);
    }
}

.mini-ring {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(0, 194, 255, 0.6);
    border-right: 2px solid rgba(0, 97, 255, 0.3);
    border-radius: 50%;
    animation: miniRingSpin 2s linear infinite;
}

@keyframes miniRingSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===================================
   SWOT FORM - 2 COLUMN LAYOUT
   =================================== */

.swot-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
    height: calc(90vh - 150px);
}

/* Info Card Styles */
.swot-info-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #0ea5e9;
    height: 100%;
}

.swot-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0ea5e9;
}

.info-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0061ff, #00c2ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.swot-info-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0;
}

.swot-info-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Info Title - Section Headers */
.info-title {
    font-size: 15px;
    font-weight: 700;
    color: #0c4a6e;
    display: inline-block;
    margin-top: 6px;
}

/* Info Description */
.info-desc {
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
}

/* Info List */
.info-list {
    background: #f8fafc;
    padding: 12px 16px;
    border-left: 2px solid #0ea5e9;
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
    margin-top: 8px;
}

.info-section {
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.info-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 6px;
}

.info-section p {
    font-size: 13px;
    color: #075985;
    line-height: 1.5;
    margin-bottom: 6px;
}

.info-section ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.info-section li {
    font-size: 13px;
    color: #075985;
    line-height: 1.6;
    margin-bottom: 4px;
}

.info-example {
    background: #f0f9ff;
    padding: 10px 14px;
    border-left: 2px solid #0ea5e9;
    margin-top: 8px;
    font-size: 13px;
    color: #0c4a6e;
    line-height: 1.5;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.1);
}

.info-example strong {
    font-weight: 700;
    color: #0284c7;
}

.info-tip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #f59e0b;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    margin-top: 12px;
}

.tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content strong {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    display: block;
    margin-bottom: 4px;
}

.tip-content {
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .swot-form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .swot-left-panel,
    .swot-right-info-panel {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .swot-form-grid {
        height: auto;
    }

    .swot-info-card {
        padding: 20px;
    }

    .swot-info-header h3 {
        font-size: 18px;
    }

    .info-section {
        padding: 14px;
    }
}

/* Container chung giống webhook */
.google-form {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
}

/* Label chính */
.google-connect-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Phần mô tả */
.form-hint {
    font-size: 12px;
    margin-top: 5px;
    color: #6b7280;
}

/* Input status */
#googleStatusInput {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    cursor: not-allowed;
}

/* Error box */
#googleError {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #d9534f;
}

/* Status text (bên dưới button) */
.google-status {
    margin-top: 12px;
    font-size: 13px;
    color: #374151;
}

/* Khu vực chứa 2 button */
.google-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Base button (giống webhook-btn) */
.google-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s ease;
}

/* Nút Kết nối */
.google-btn-test {
    background: #4f46e5;
    /* xanh tím nhạt */
    color: white;
}

.google-btn-test:hover {
    background: #4338ca;
}

/* Nút Ngắt kết nối */
.google-btn-save {
    background: #dc2626;
    /* đỏ nhạt */
    color: white;
}

.google-btn-save:hover {
    background: #b91c1c;
}

/* Spinner nhỏ  */
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

.hidden {
    display: none !important;
}

/* Animation spinner */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.google-login-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #1a73e8;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 15px;
    font-weight: 500;
    color: #ffffff;

    cursor: pointer;
    transition: all 0.2s ease;
}

.google-login-btn:hover {
    filter: brightness(1.08);
}

.google-login-btn:active {
    background: #f3f4f6;
    transform: scale(0.98);
}

.google-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.google-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    z-index: 99;
}

.spinner-big {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #4285F4;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #4285F4;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.google-btn-reconnect {
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 14px;

    border-radius: 8px;
    border: 1px solid rgba(200, 200, 200, 0.8);

    background-color: rgba(55, 65, 81, 0.15);

    transition: all 0.3s ease;
    height: 40px;
    cursor: pointer;
}

.btn-google:hover {
    border-color: rgba(200, 200, 200, 0.8);
    background-color: rgba(55, 65, 81, 0.25);
}

.btn-google:active {
    background-color: rgba(55, 65, 81, 0.35);
}

.google-icon {
    display: inline-block;
}

#googleConnectSpinner {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid rgb(180, 180, 180);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

