:root {
    --meta-blue: #0064E0;
    --side-bg: #F0F2F5;
    --border-color: #CED0D4;
    --text-black: #1C1E21;
    --text-gray: #65676B;
    --error-red: #FA383E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #FFF;
    color: var(--text-black);
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--side-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 12px;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 24px;
    padding-left: 8px;
}

.meta-logo {
    height: 20px;
    display: block;
    margin-bottom: 4px;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-item:hover {
    background: #E4E6EB;
}

.nav-item.active {
    background: #000;
    color: #FFF;
}

.icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 20px;
    height: 20px;
}

.nav-item.active .icon svg {
    color: #FFF;
}

.nav-item.border-top {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    border-radius: 0;
}

/* Main Content Layout */
.main-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px 40px;
}

#main-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer Resources Section */
.resources-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #ced0d4;
}

.resources-section h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #1c1e21;
}

.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.resource-card {
    background: #fff;
    border: 1px solid #ced0d4;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.resource-card:hover {
    background: #f2f3f5;
}

.resource-card .icon-circle {
    width: 36px;
    height: 36px;
    background: #e7f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #1877f2;
}

.resource-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1c1e21;
}

.resource-card p {
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
}

.change-lang-footer {
    padding-bottom: 60px;
}

.btn-change-lang {
    background: #1877f2;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

/* Verification UI Enhancements */
.verification-card {
    background: #fff;
    border: 1px solid #ced0d4;
    border-radius: 8px;
    padding: 32px;
}

.verification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.fb-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.verification-title h2 {
    font-size: 20px;
    margin: 0;
}

.verification-title p {
    font-size: 14px;
    color: #65676b;
    margin-top: 4px;
}

.info-box {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
    color: #1c1e21;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .info-icon {
    color: #1877f2;
    font-size: 16px;
}

.verification-form {
    margin-top: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 8px;
}

.fb-input {
    width: 100%;
    padding: 12px;
    background: #f5f6f7;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 4px;
    outline: none;
}

.fb-input:focus {
    border-color: #1877f2;
    background: #fff;
    box-shadow: 0 0 0 2px #e7f3ff;
}

.forgot-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: #900;
    font-size: 14px;
    text-decoration: none;
    margin-top: 16px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.main-wrapper {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main-container {
    max-width: 680px;
    width: 100%;
    padding: 40px 0;
}

.warning-header {
    color: var(--error-red);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.warning-icon {
    width: 28px;
    height: 28px;
    border: 2px solid var(--error-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.text-description {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.illustration-card {
    background: #edf5ff;
    border-radius: 8px;
    margin: 32px 0;
    overflow: hidden;
    border: 1px solid #c9d9f2;
    padding: 0 !important;
}

.illustration-card img {
    width: 100% !important;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.appeal-box {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-top: -60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.appeal-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.appeal-box p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.btn.primary {
    background: var(--meta-blue);
    color: #FFF;
}

.btn.primary:disabled {
    background: #E4E6EB;
    color: #BCC0C4;
    cursor: not-allowed;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 30, 33, 0.9);
    /* Darker Background */
    backdrop-filter: blur(12px);
    /* Premium Blur effect */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #FFF;
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    padding: 24px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1877f2;
    text-align: center;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #65676b;
    margin-bottom: 24px;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e4e6eb;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    color: #65676b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.close-modal:hover {
    background: #d8dadf;
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8d91;
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid #1877f2;
    border-radius: 6px;
    background: #f5f6f7;
}

.modal-body {
    padding: 0 16px;
    max-height: 400px;
    overflow-y: auto;
}

.language-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0 4px 0 0;
}

.lang-item {
    padding: 14px 16px;
    border: 1px solid #dddfe2;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-item .lang-code {
    font-size: 11px;
    font-weight: 800;
    color: #1c1e21;
    width: 24px;
    text-align: center;
    text-transform: uppercase;
    background-color: #e4e6eb;
    border-radius: 4px;
    padding: 4px 0;
}

.lang-item:hover {
    background: #f5f6f7;
}

.lang-item.active {
    border: 2px solid #1877f2;
    background: #f1f8ff;
    padding: 13px 15px;
}

.lang-item.active span {
    color: #1877f2;
}

.lang-item.active .lang-code {
    color: #1877f2;
    background-color: #d0e8ff;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: center;
}

#confirm-lang {
    width: 100%;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}

.hidden {
    display: none !important;
}

/* Success View */
.success-container {
    background: #e6fcf5;
    border: 1px solid #20c997;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.1);
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(32, 201, 151, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.success-icon-wrapper svg {
    width: 50px;
    height: 50px;
    color: #20c997;
}

.success-container h2 {
    color: #0ca678;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.success-container p {
    color: #099268;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.reference-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.reference-label {
    color: #fa5252;
    font-weight: 700;
    font-size: 18px;
}

.reference-id {
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #ffc9c9;
    color: #fa5252;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .main-wrapper {
        margin-left: 0;
        padding: 20px;
    }
}

/* Inline Loader for Buttons */
.loader-inline {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin-inline 1s ease-in-out infinite;
}

@keyframes spin-inline {
    to {
        transform: rotate(360deg);
    }
}