/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-600: #475569;
    --gray-400: #94a3b8;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f5f3ff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--gray-400);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat {
    text-align: left;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(37, 99, 235, 0.3);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-image-content {
    position: absolute;
    inset: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-header {
    height: 32px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-dot:nth-child(1) { background: #ef4444; }
.mock-dot:nth-child(2) { background: #eab308; }
.mock-dot:nth-child(3) { background: #22c55e; }

.mock-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mock-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mock-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.mock-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
}

.mock-title {
    height: 12px;
    width: 60px;
    background: var(--gray-200);
    border-radius: 4px;
}

.mock-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-line {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
}

.mock-line:nth-child(2) { width: 80%; }
.mock-line:nth-child(3) { width: 60%; }

/* ===== Sections ===== */
.section {
    padding: 120px 24px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 18px;
    color: var(--gray-600);
}

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

/* ===== Features Section ===== */
.features {
    background: var(--white);
}

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

.feature-card {
    padding: 32px;
    background: var(--gray-50);
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: white;
    border-color: var(--gray-200);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Products Section ===== */
.products {
    background: var(--gray-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 0;
    right: 0;
    height: 100%;
    background: white;
    border-radius: 50% 50% 0 0;
}

.product-content {
    padding: 32px;
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.product-card p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.product-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Architecture Section ===== */
.architecture {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.architecture::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
}

.architecture .section-label {
    color: var(--secondary);
}

.architecture .section-title {
    color: white;
}

.architecture .section-desc {
    color: var(--gray-400);
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.arch-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
}

.arch-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.arch-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.arch-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.arch-card p {
    font-size: 14px;
    color: var(--gray-400);
}

/* ===== Scenarios Section ===== */
.scenarios {
    background: white;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    padding: 32px;
    background: var(--gray-50);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.scenario-card:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: scale(1.02);
}

.scenario-card:hover * {
    color: white !important;
}

.scenario-icon {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.scenario-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.scenario-card p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ===== Comparison Section ===== */
.comparison {
    background: var(--gray-50);
}

.comparison-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th:first-child {
    border-radius: 20px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 20px 0 0;
}

.comparison-table td {
    padding: 16px 24px;
    font-size: 15px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--gray-800);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta .btn {
    background: white;
    color: var(--primary);
    font-size: 16px;
    padding: 16px 40px;
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Contact Section ===== */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    padding: 48px;
    background: var(--gray-50);
    border-radius: 24px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 16px;
    color: var(--gray-800);
    font-weight: 500;
}

.contact-form {
    padding: 48px;
    background: var(--gray-50);
    border-radius: 24px;
}

.contact-form h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Modal Styles ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray-600);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.modal-body {
    padding: 24px;
}

.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 10px;
}

.modal-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-tab:hover:not(.active) {
    color: var(--gray-800);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-input-group {
    margin-bottom: 16px;
}

.form-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input-group input::placeholder {
    color: var(--gray-400);
}

.form-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.tenant-selector {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.tenant-selector h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.tenant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tenant-item {
    padding: 16px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tenant-item:not(.tenant-item-disabled):hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.tenant-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.tenant-item-code {
    font-size: 13px;
    color: var(--gray-400);
}

.tenant-item-info {
    flex: 1;
}

.tenant-item-status-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.tenant-item-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.tenant-item-status.status-available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.tenant-item-status.status-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.tenant-item-status.status-disabled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.tenant-item-disabled {
    opacity: 0.6;
}

.tenant-item-disabled:hover {
    border-color: transparent;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 24px 40px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 15px;
    margin-top: 20px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 14px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
}

/* ===== Login Hint ===== */
.login-hint {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 12px;
}

/* ===== Personal Center ===== */
.pc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--gray-50);
    z-index: 3000;
    overflow: hidden;
}

.pc-overlay.active {
    display: flex;
}

.pc-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Sidebar */
.pc-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    padding: 0;
    color: white;
}

.pc-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-sidebar-header .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
}

.pc-sidebar-header .logo-text {
    color: white;
    font-size: 18px;
}

.pc-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.pc-nav-item.active {
    background: rgba(37, 99, 235, 0.3);
    color: white;
}

.pc-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-back-home {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 10px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pc-back-home:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.pc-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: none;
    border-radius: 10px;
    color: #fca5a5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fecaca;
}

/* Main Content */
.pc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pc-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
}

.pc-main-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.pc-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.pc-user-badge .pc-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* Tab Content */
.pc-tab-content {
    display: none;
    padding: 32px 40px;
    flex: 1;
}

.pc-tab-content.active {
    display: block;
}

/* Info Cards */
.pc-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
}

.pc-info-card {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pc-info-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pc-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 28px;
    flex-shrink: 0;
}

.pc-info-card-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.pc-user-role {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
}

.pc-info-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.pc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pc-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-info-item label {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

.pc-info-item span {
    font-size: 15px;
    color: var(--gray-800);
    font-weight: 500;
}

.pc-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.pc-status-badge.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success) !important;
}

.pc-status-badge.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error) !important;
}

/* Tenants Tab */
.pc-tenants-section {
    max-width: 900px;
}

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

.pc-tenants-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.pc-tenants-count {
    font-size: 14px;
    color: var(--gray-400);
}

.pc-tenants-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pc-tenant-card {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.2s;
}

.pc-tenant-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.pc-tenant-card-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.pc-tenant-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
}

.pc-tenant-details {
    min-width: 0;
}

.pc-tenant-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-tenant-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-400);
}

.pc-tenant-code-badge {
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: var(--gray-600);
}

.pc-tenant-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pc-tenant-status-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.pc-tenant-status-tag.status-available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.pc-tenant-status-tag.status-pending {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.pc-tenant-status-tag.status-disabled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.pc-btn-enter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pc-btn-enter:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pc-btn-enter:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Empty State */
.pc-empty-state {
    text-align: center;
    padding: 64px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pc-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pc-empty-state p {
    font-size: 15px;
    color: var(--gray-400);
}

/* Invite Button in Tenant Card */
.pc-btn-invite {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pc-btn-invite:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* Invite Modal */
.invite-form {
    padding: 0;
}

.input-readonly {
    background: var(--gray-50) !important;
    color: var(--gray-600) !important;
    cursor: default;
}

.invite-link-box {
    display: flex;
    gap: 8px;
}

.invite-link-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: monospace;
    color: var(--gray-700);
    background: var(--gray-50);
}

.btn-copy {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.invite-loading {
    text-align: center;
    padding: 16px;
    color: var(--gray-400);
    font-size: 14px;
}

/* Join Modal */
.join-content {
    text-align: center;
}

.join-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.join-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.join-desc {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

.join-info {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.join-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.join-info-item label {
    font-size: 13px;
    color: var(--gray-400);
}

.join-info-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    font-family: monospace;
}

/* Applications Tab */
.pc-applications-section {
    max-width: 900px;
}

.pc-applications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.pc-applications-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.pc-applications-tabs {
    display: flex;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.pc-app-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.pc-app-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pc-app-tab:hover:not(.active) {
    color: var(--gray-800);
}

.pc-app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-app-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s;
}

.pc-app-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pc-app-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.pc-app-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.pc-app-details {
    min-width: 0;
}

.pc-app-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.pc-app-meta {
    font-size: 13px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pc-app-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pc-btn-approve {
    padding: 8px 18px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-btn-approve:hover {
    background: #059669;
    transform: translateY(-1px);
}

.pc-btn-reject {
    padding: 8px 18px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-btn-reject:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* PC Tenants Header Right */
.pc-tenants-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Personal Center Responsive */
@media (max-width: 768px) {
    .pc-sidebar {
        width: 200px;
        min-width: 200px;
    }

    .pc-main-header {
        padding: 20px 24px;
    }

    .pc-main-header h2 {
        font-size: 18px;
    }

    .pc-tab-content {
        padding: 24px;
    }

    .pc-info-grid {
        grid-template-columns: 1fr;
    }

    .pc-tenant-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .pc-tenant-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    pointer-events: auto;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.toast svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-info { background: #3b82f6; }

.toast-removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ===== Pending Badge on Applications Button ===== */
.pc-btn-applications {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.pc-btn-applications:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
}

.pc-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 4px;
}

@media (max-width: 640px) {
    .toast-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .pc-container {
        flex-direction: column;
    }

    .pc-sidebar {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 0 16px;
        height: auto;
    }

    .pc-sidebar-header {
        padding: 12px 0;
        border-bottom: none;
    }

    .pc-sidebar-header .logo-text {
        display: none;
    }

    .pc-nav {
        flex-direction: row;
        padding: 0;
        flex: 1;
        justify-content: center;
    }

    .pc-nav-item {
        padding: 8px 14px;
        font-size: 13px;
    }

    .pc-sidebar-footer {
        padding: 0;
        border: none;
    }

    .pc-logout-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section {
        padding: 80px 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid,
    .products-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
