:root {
    --color-primary: #4A90D9;
    --color-primary-hover: #3A7BC8;
    --color-accent: #6CB4EE;
    --card-bg: #FFFFFF;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-helper: #A8A29E;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --disabled-color: #bbbbbb;
    --disabled-bg: #f5f5f5;
    --header-bg: #292524;
    --header-text: #ffffff;
    --header-divider: #525252;
    --bg-page: #F5F4F1;
    --radius: 12px;
    --font-family: 'Inter', sans-serif;
}
body {
    font-family: var(--font-family);
    font-weight: 300;
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Dark Header */
.site-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 0 2rem;
    height: 48px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}
.site-header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-brand-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: 0.05em;
}
.header-powered {
    font-size: 0.875rem;
    font-weight: 100;
    color: var(--header-text);
    letter-spacing: 0.01em;
}
.header-divider {
    width: 1px;
    height: 20px;
    background-color: var(--header-divider);
}
.header-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--header-text);
    letter-spacing: 0.01em;
}
.header-badge {
    font-size: 0.625rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--color-accent);
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.site-header-right {
    display: flex;
    align-items: center;
}
.admin-btn {
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--header-text);
    background-color: transparent;
    border: 1px solid #6f6f6f;
    padding: 4px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.admin-btn:hover {
    background-color: #353535;
    border-color: #fff;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 2rem 0 2rem;
}
.section {
    margin-top: 3rem;
}
h2 {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}
h4 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
h5 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.icon-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
}
.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.icon-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}
.icon-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}
.icon-card.disabled {
    background-color: var(--disabled-bg);
    cursor: not-allowed;
    color: #888;
}
.icon-card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.primary-accent h3 {
    color: var(--color-primary);
}

.tips-container {
    max-width: 300px;
    margin: 0 auto;
}
.content-section {
    text-align: left;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}
.content-section h3 {
    font-size: 1.5rem;
    margin-top: 0;
}
.content-section h3.section-accent {
    color: var(--color-primary);
}
.content-section p, .content-section li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.content-section ol, .content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.content-section ol li, .content-section ul li {
    margin-bottom: 0.5rem;
}
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.content-section th, .content-section td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    background-color: #f9f9f9;
}
.content-section th {
    background-color: #eee;
    font-weight: 700;
    color: var(--text-primary);
}
.content-section-link {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px 15px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 100;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Floating Support Chat Button */
.support-chat-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.support-chat-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* Support Modal Overlay */
.support-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.support-modal-overlay.active {
    display: flex;
}

/* Support Modal Content */
.support-modal {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

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

.support-modal-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.support-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.support-modal-close:hover {
    opacity: 1;
}

.support-modal-body {
    padding: 1.5rem;
}

.support-modal-body p {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.support-modal-body ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.25rem;
    text-align: left;
}

.support-modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.support-contact {
    background-color: #f8f9fa;
    border-radius: var(--radius);
    padding: 1rem;
    border-left: 4px solid var(--color-primary);
}

.support-contact p {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--color-primary);
}

.support-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.support-contact a:hover {
    color: var(--color-primary);
}

.support-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.support-contact .contact-item:last-child {
    margin-bottom: 0;
}

/* Agent Chat Modal */
.agent-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1002;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.agent-modal-overlay.active {
    display: flex;
}

.agent-modal {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agent-modal-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.agent-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.agent-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.agent-modal-close:hover {
    opacity: 1;
}

.agent-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.agent-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Welcome/Email Collection Modal */
.welcome-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.welcome-modal-overlay.active {
    display: flex;
}

.welcome-modal {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    max-width: 440px;
    width: 90%;
    overflow: hidden;
    animation: welcomeSlideIn 0.4s ease;
}

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

.welcome-modal-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.welcome-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.welcome-modal-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.welcome-modal-body {
    padding: 1.5rem;
}

.welcome-modal-body .intro-text {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.welcome-form-group {
    margin-bottom: 1rem;
}

.welcome-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-form-group input {
    font-family: var(--font-family);
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.welcome-form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.welcome-form-group input::placeholder {
    color: #aaa;
}

.welcome-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.welcome-btn {
    font-family: var(--font-family);
    flex: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.welcome-btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
}

.welcome-btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.welcome-btn-secondary {
    background-color: #fff;
    color: var(--text-secondary);
    border: 2px solid #ddd;
}

.welcome-btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.welcome-privacy-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-helper);
}

.welcome-privacy-note a {
    color: var(--color-primary);
    text-decoration: none;
}

.welcome-privacy-note a:hover {
    text-decoration: underline;
}
