@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --primary: #696aef;
    --accent-1: #f26512;
    --accent-2: #7a2982;
    --accent-3: #2886f7;
    --bg: #f7f8ff;
    --text: #1d1f2c;
    --muted: #6a6f85;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 20%, rgba(105, 106, 239, 0.2), transparent 42%),
        radial-gradient(circle at 80% 0%, rgba(122, 41, 130, 0.18), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(40, 134, 247, 0.15), transparent 40%),
        var(--bg);
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 42px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(105, 106, 239, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 6px 16px rgba(105, 106, 239, 0.2);
}

.brand-title {
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-title::after {
    content: '・';
    color: var(--accent-2);
    margin-left: 6px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-dropdown {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(105, 106, 239, 0.25);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.lang-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    min-width: 150px;
}

.lang-menu a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text);
    border-radius: 10px;
    font-size: 13px;
}

.lang-menu a:hover {
    background: rgba(105, 106, 239, 0.1);
}

.lang-menu.open {
    display: block;
}

.dash-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid transparent;
}

.dash-btn .nav-icon,
.lang-trigger .nav-icon {
    width: 18px;
    height: 18px;
}

.dash-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-3));
    color: #fff;
    box-shadow: 0 10px 20px rgba(105, 106, 239, 0.18);
}

.dash-btn.ghost {
    background: #fff;
    color: var(--text);
    border-color: rgba(105, 106, 239, 0.25);
}

.back-btn {
    padding: 8px 12px;
}

.container {
    max-width: 1100px;
    margin: 42px auto 80px;
    padding: 0 24px;
}

.auth-card,
.form-card,
.welcome-card,
.action-card,
.summary-panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card {
    max-width: 460px;
    margin: 80px auto;
    padding: 32px;
}

.card-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.card-header p {
    margin: 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.form-grid input,
.form-grid select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(105, 106, 239, 0.2);
    font-size: 14px;
    outline: none;
}

/* Mandatory fields */
.form-grid input[required],
.form-grid select[required],
.form-grid textarea[required] {
    border: 2px solid #111;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(105, 106, 239, 0.15);
}

.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

button.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-3));
    border: none;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

button.ghost,
a.ghost {
    background: transparent;
    border: 1px solid rgba(105, 106, 239, 0.3);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
}

.alert {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.alert.error {
    background: rgba(242, 101, 18, 0.12);
    color: #c04806;
}

.alert.success {
    background: rgba(40, 134, 247, 0.12);
    color: #1c5fb8;
}

.dashboard .welcome-card {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-card {
    background: linear-gradient(135deg, rgba(105, 106, 239, 0.18), rgba(122, 41, 130, 0.1));
    border: 1px solid rgba(105, 106, 239, 0.12);
}

.hero-banner {
    background-image: url("../img/bash_banner.gif");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(40, 56, 96, 0.75), rgba(105, 106, 239, 0.45));
}

.hero-banner > * {
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-pill {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
    width: auto;
    height: auto;
}

.task-panel {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    width: 260px;
    box-shadow: var(--shadow);
}

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

.task-add {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

.task-list li {
    list-style: disc;
}

.task-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text);
}

.task-empty {
    font-size: 12px;
    color: var(--muted);
}

.task-empty.padded {
    padding: 18px;
}

.task-list.full {
    padding: 18px 22px;
}

.task-view-link {
    display: inline-flex;
    margin-top: 10px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

.tasks-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tasks-group h3 {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text);
}

.task-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.task-modal.open {
    display: flex;
}

.company-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.company-modal.open {
    display: flex;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70;
}

.confirm-modal.open {
    display: flex;
}

.confirm-card {
    width: 360px;
    max-width: 90vw;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.confirm-title {
    font-weight: 700;
    font-size: 16px;
}

.confirm-message {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.confirm-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.company-modal-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    width: 380px;
    box-shadow: var(--shadow);
}

.company-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-modal-body {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-modal-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(105, 106, 239, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-modal-name {
    font-weight: 700;
}

.company-modal-meta {
    font-size: 12px;
    color: var(--muted);
}

.company-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 12px;
}

.company-modal-grid span {
    color: var(--muted);
    font-size: 11px;
}

.profile-card .profile-company {
    background: rgba(105, 106, 239, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-card .profile-company-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-card .profile-company-value {
    font-weight: 600;
}

.profile-card .profile-divider {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}
.task-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    width: 320px;
    box-shadow: var(--shadow);
}

.task-modal-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.task-modal-card input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(105, 106, 239, 0.2);
}

.inline-field {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-field input {
    flex: 1;
}

.task-modal-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hero-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 106, 239, 0.45), transparent 70%);
}

.hero-icons {
    position: absolute;
    right: 10px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 22px;
}

.badge {
    background: linear-gradient(135deg, var(--accent-2), var(--primary));
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.action-grid {
    margin-top: 28px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.action-card {
    padding: 22px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(105, 106, 239, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(105, 106, 239, 0.16);
}

.summary-panel {
    padding: 16px 20px;
    margin: 16px 0 20px;
    background: rgba(105, 106, 239, 0.08);
}

.summary-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.dashboard-shell {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.side-nav {
    padding: 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(105, 106, 239, 0.08);
}

.nav-link.active {
    background: rgba(105, 106, 239, 0.14);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

.nav-accordion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(105, 106, 239, 0.08);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.nav-accordion .chev {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.nav-accordion.open .chev {
    transform: rotate(180deg);
}

.nav-group {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
}

.nav-group.open {
    display: flex;
    animation: fadeSlide 0.2s ease;
}

.icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.icon-wrap.primary {
    background: transparent;
}

.icon-wrap.accent {
    background: transparent;
}

.icon-wrap.info {
    background: transparent;
}

.nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.icon {
    font-size: 16px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
}

.agent-dashboard .dashboard-main {
    gap: 18px;
}

.agent-company-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.agent-company-card .company-title {
    font-size: 24px;
    font-weight: 700;
}

.agent-company-card .company-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.agent-company-card .company-sub {
    font-size: 13px;
    color: var(--muted);
}

.side-widget {
    margin-top: 16px;
}

.notice-board .notice-body {
    margin-top: 10px;
}

.notice-empty {
    font-size: 13px;
    color: var(--muted);
}

.notice-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

.notice-audience {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(105, 106, 239, 0.12);
    color: #3b46c0;
    font-weight: 600;
}

.notice-content {
    white-space: pre-wrap;
    line-height: 1.5;
    color: var(--text);
}

.notice-author {
    font-size: 12px;
    color: var(--muted);
}

.agent-dropbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-dropbox .dropbox-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.section-sub {
    font-size: 13px;
    color: var(--muted);
}

.notice-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.notice-hero {
    background: linear-gradient(135deg, rgba(105, 106, 239, 0.18), rgba(122, 41, 130, 0.12));
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.notice-hero-icon {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 8px 10px;
}

.settings-hero {
    background: linear-gradient(135deg, rgba(105, 106, 239, 0.18), rgba(40, 134, 247, 0.12));
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.email-hero {
    background-image: url("/assets/img/mail_ani.gif");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.email-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(40, 56, 96, 0.75), rgba(105, 106, 239, 0.45));
    border-radius: 16px;
}

.email-hero > * {
    position: relative;
    z-index: 1;
}

.settings-badge {
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.settings-card .card-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.notice-editor {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-toolbar {
    display: flex;
    gap: 8px;
}

.notice-toolbar button {
    border: 1px solid rgba(105, 106, 239, 0.2);
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

.notice-content {
    min-height: 160px;
    border: 1px solid rgba(105, 106, 239, 0.2);
    border-radius: 12px;
    padding: 12px;
}

.notice-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.notice-buttons {
    display: flex;
    gap: 10px;
}

.notice-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-body {
    font-size: 14px;
    color: var(--text);
}

.agent-notice {
    margin-top: 18px;
}

@media (max-width: 860px) {
    .agent-dropbox-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .agent-dropbox .dropbox-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

.widget-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.widget {
    padding: 20px;
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.widget.accent-1 {
    background: linear-gradient(135deg, rgba(242, 101, 18, 0.1), rgba(105, 106, 239, 0.1));
}

.widget.chart::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(40, 134, 247, 0.2), transparent 70%);
}

.widget-title {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.widget-number {
    font-size: 32px;
    font-weight: 700;
    margin-top: 8px;
}

.widget-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.chart-bars {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    align-items: flex-end;
    height: 42px;
}

.chart-bars span {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), var(--accent-3));
    border-radius: 6px;
}

.chart-bars span:nth-child(1) { height: 20px; }
.chart-bars span:nth-child(2) { height: 32px; }
.chart-bars span:nth-child(3) { height: 26px; }
.chart-bars span:nth-child(4) { height: 38px; }

.time-card {
    background: linear-gradient(135deg, rgba(105, 106, 239, 0.12), rgba(122, 41, 130, 0.12));
}

.country-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(105, 106, 239, 0.1);
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.country-chip.more {
    background: rgba(40, 134, 247, 0.12);
    color: #1c5fb8;
}

.future-body {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.applicant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.applicant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(105, 106, 239, 0.08);
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
}

.applicant-name {
    font-weight: 600;
}

.future-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(105, 106, 239, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.split-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.split-graphic {
    padding: 30px;
    background: linear-gradient(160deg, rgba(105, 106, 239, 0.18), rgba(40, 134, 247, 0.08));
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.domestic_image {
    background-image: url("../img/domestic-hero.png");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.company_image {
    background-image: url("../img/agent_company.png");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.domestic_image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(105, 106, 239, 0.75), rgba(40, 134, 247, 0.45));
}

.domestic_image > * {
    position: relative;
    z-index: 1;
}

.compay_image {
    background-image: url("../img/company-hero.png");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.company_image {
    background-image: url("../img/agent_company.png");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.animate_dashboard {
    background-image: url("../img/bash_banner.gif");
    background-size: cover;
    background-position: center;
    position: relative;
}
.compay_image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(242, 101, 18, 0.7), rgba(122, 41, 130, 0.55));
}

.company_image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30, 35, 60, 0.78), rgba(122, 41, 130, 0.65));
}

.compay_image > * {
    position: relative;
    z-index: 1;
}

.company_image > * {
    position: relative;
    z-index: 1;
}

.agent_user_image {
    background-image: url("/assets/img/user.gif");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.agent_user_image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30, 35, 60, 0.7), rgba(105, 106, 239, 0.45));
}

.agent_user_image > * {
    position: relative;
    z-index: 1;
}

.split-graphic.accent {
    background: linear-gradient(160deg, rgba(242, 101, 18, 0.2), rgba(122, 41, 130, 0.15));
    background-image: url("../img/user.gif");
    background-position: center;
}

.domestic_image {
    background-image: url("../img/user.gif");
    background-position: center;
}
.graphic-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
}

.graphic-icons {
    display: flex;
    gap: 10px;
    font-size: 22px;
}

.split-form {
    padding: 30px;
}

.list-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent-3));
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.table-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(105, 106, 239, 0.08);
}

th {
    background: rgba(105, 106, 239, 0.06);
    font-weight: 600;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-pill.pending {
    background: rgba(242, 101, 18, 0.15);
    color: #b3470c;
}

.status-pill.review {
    background: rgba(105, 106, 239, 0.15);
    color: #4a4cc7;
}

.status-pill.approved {
    background: rgba(40, 134, 247, 0.18);
    color: #1c5fb8;
}

.status-pill.rejected {
    background: rgba(122, 41, 130, 0.2);
    color: #6b1f6d;
}

.status-pill.created {
    background: rgba(105, 106, 239, 0.12);
    color: #4a4cc7;
}

.pagination {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(105, 106, 239, 0.2);
    text-decoration: none;
    font-size: 12px;
    color: var(--text);
    background: #fff;
}

.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.side-divider {
    border: none;
    border-top: 1px solid rgba(105, 106, 239, 0.12);
    margin: 12px 0;
}

.side-info {
    font-size: 12px;
    color: var(--text);
}

.side-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.info-table {
    width: 100%;
    font-size: 12px;
}

.info-table th {
    text-align: left;
    color: var(--muted);
    padding: 4px 0;
    width: 40%;
}

.info-table td {
    padding: 4px 0;
}

.applicant-form-shell {
    display: block;
    margin-top: 16px;
}

.applicant-portrait {
    border-radius: 18px;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.applicant-portrait.male {
    background-image: url("/assets/img/applicant_male.svg");
}

.applicant-portrait.female {
    background-image: url("/assets/img/applicant_female.svg");
}

.portrait-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.65));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #fff;
}

.clear_data {
    background-color: #fff2f2;
    color: red;
    border-width: inherit;
    padding: 6px 12px;
}

.portrait-name {
    font-weight: 700;
}

.portrait-meta {
    font-size: 12px;
    opacity: 0.85;
}

.form-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.detail-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 12px;
}

.detail-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid span {
    color: var(--muted);
    font-size: 11px;
}

.detail-card.full-width {
    width: 100%;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(105, 106, 239, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
}

.applicant-nav-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .applicant-form-shell {
        grid-template-columns: 1fr;
    }
}

.status-pill.active {
    background: rgba(40, 134, 247, 0.15);
    color: #1c5fb8;
}

.status-pill.inactive {
    background: rgba(242, 101, 18, 0.15);
    color: #b3470c;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

.link.danger {
    color: #c1121f;
}

.filter-bar {
    background: var(--card);
    padding: 12px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.country-grid {
    display: grid;
    gap: 18px;
}

.country-card {
    background: var(--card);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.country-flag {
    font-size: 26px;
}

.country-name {
    font-weight: 700;
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(105, 106, 239, 0.05);
}

.company-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.company-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-meta {
    color: var(--muted);
    font-size: 12px;
}

.company-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.info-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-hero {
    background: linear-gradient(135deg, rgba(105, 106, 239, 0.18), rgba(122, 41, 130, 0.12));
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-emoji {
    font-size: 36px;
}

.info-grid,
.policy-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
    background: #fff;
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.faq-list details {
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-list span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.faq-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.faq-lang-label {
    font-size: 14px;
    color: var(--muted);
}

.dropbox-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    background: #f4f6ff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.dropbox-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dropbox-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.dropbox-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropbox-link {
    text-decoration: none;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.dropbox-link.active,
.dropbox-link:hover {
    background: rgba(105, 106, 239, 0.1);
}

.dropbox-storage {
    margin-top: auto;
}

.storage-box {
    background: rgba(105, 106, 239, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.storage-icon {
    font-size: 26px;
}

.storage-title {
    font-weight: 600;
}

.storage-usage {
    display: flex;
    gap: 12px;
    align-items: center;
}

.usage-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--usage), rgba(105, 106, 239, 0.15) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.usage-ring span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.usage-info {
    flex: 1;
}

.usage-bar {
    height: 8px;
    background: rgba(105, 106, 239, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.usage-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent-3));
    border-radius: 999px;
}

.storage-meta {
    font-size: 12px;
    color: var(--muted);
}

.dropbox-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dropbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 26px;
    box-shadow: var(--shadow);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-meta-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(105, 106, 239, 0.15);
    margin: 8px 0 14px;
}

.document-view {
    max-width: 1200px;
    margin: 24px auto 60px;
    padding: 0 24px;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.document-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.doc-reupload-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.document-actions .primary-btn,
.document-actions .ghost,
.document-actions button.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    cursor: pointer;
}

.document-actions .primary-btn {
    border: none;
}

.document-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

.document-body {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
}

.document-frame {
    width: 100%;
    height: 70vh;
    border: none;
}

.feedback-card {
    width: 520px;
    max-width: 90vw;
}

.feedback-form textarea {
    width: 100%;
    border: 1px solid rgba(105, 106, 239, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    resize: vertical;
}

.document-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.dropbox-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.search-pill input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 180px;
}

.dropbox-section .section-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.folder-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.folder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(105, 106, 239, 0.15);
}

.folder-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(105, 106, 239, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-dot {
    margin-left: auto;
    color: var(--muted);
}

.country-meta {
    font-size: 12px;
    color: var(--muted);
}

.folder-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stat-pill.danger {
    background: rgba(242, 101, 18, 0.12);
    color: #b33a2b;
}

.folder-card.compact {
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.folder-card.compact .folder-top {
    flex: 1;
}

.folder-card.compact .folder-stats {
    gap: 12px;
}

.folder-card.compact .stat-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.folder-card.compact .stat-label {
    margin-right: 4px;
}

.folder-card.compact .stat-meta {
    font-size: 12px;
    color: var(--muted);
}

.agent-dropbox .folder-grid {
    grid-template-columns: 1fr;
}

.agent-dropbox .folder-card {
    padding: 12px 16px;
}

.agent-dropbox .folder-country .country-name {
    font-weight: 600;
}

.agent-dropbox .folder-dot {
    display: none;
}

.applicant-header h1 {
    margin: 0 0 4px;
}

.side-divider {
    border: none;
    border-top: 1px solid rgba(105, 106, 239, 0.15);
    margin: 6px 0;
}

.side-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-title {
    font-weight: 600;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.info-table th,
.info-table td {
    text-align: left;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(105, 106, 239, 0.12);
}

.info-table th {
    color: var(--muted);
    font-weight: 600;
    width: 45%;
}

.side-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.applicant-detail-header {
    align-items: flex-start;
}

.people-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.people-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(105, 106, 239, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.people-sub {
    font-size: 12px;
    color: var(--muted);
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doc-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
}

.doc-main {
    display: flex;
    gap: 12px;
    align-items: center;
}

.doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(40, 134, 247, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.doc-name {
    font-weight: 600;
}

.doc-meta {
    font-size: 12px;
    color: var(--muted);
}

.doc-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #1c5fb8;
    background: rgba(40, 134, 247, 0.12);
}

.doc-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.doc-action {
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: rgba(105, 106, 239, 0.08);
}

.doc-action.view {
    color: #1c5fb8;
    background: rgba(40, 134, 247, 0.12);
}

.doc-action.ghost {
    background: #fff;
    border: 1px solid rgba(105, 106, 239, 0.25);
}

.doc-action.danger {
    color: #b33a2b;
    background: rgba(242, 101, 18, 0.12);
}

.doc-edit-input {
    display: none;
}

.upload-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.upload-zone {
    border: 2px dashed rgba(105, 106, 239, 0.4);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background: rgba(105, 106, 239, 0.05);
}

.upload-zone input[type=\"file\"] {
    display: none;
}

.upload-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.upload-list {
    margin-top: 20px;
}

.upload-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-title {
    font-weight: 700;
    font-size: 13px;
}

.sidebar-row {
    font-size: 12px;
    color: var(--muted);
}

.sidebar-row span {
    color: var(--text);
    font-weight: 600;
    margin-right: 4px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(105, 106, 239, 0.18);
    margin: 6px 0;
}

.upload-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-upload {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-action.danger {
    background: rgba(242, 101, 18, 0.12);
    color: #c04806;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.inline-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.inline-file input[type="file"] {
    display: none;
}

.document-viewer {
    margin-top: 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
}

.document-viewer iframe {
    width: 100%;
    height: 680px;
    border: none;
    border-radius: 12px;
}

.document-viewer img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.feedback-card {
    margin-top: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(105, 106, 239, 0.12);
}

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

.feedback-title {
    font-weight: 700;
    font-size: 14px;
}

.feedback-date {
    font-size: 12px;
    color: var(--muted);
}

.feedback-body {
    color: var(--text);
    line-height: 1.5;
    background: rgba(105, 106, 239, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.upload-name {
    font-weight: 600;
}

.upload-name.small {
    font-size: 11px;
    font-weight: 500;
}

.doc-category {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}

.doc-category.missing {
    color: #d97706;
}

.doc-type-tag {
    padding: 6px 10px;
    background: rgba(40, 134, 247, 0.12);
    border-radius: 999px;
    font-size: 11px;
    color: #1c5fb8;
    font-weight: 600;
}

.upload-meta {
    font-size: 12px;
    color: var(--muted);
}

.applicant-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.applicant-name label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.applicant-name input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(105, 106, 239, 0.2);
    font-size: 14px;
}

.form-section {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.radio-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text);
}

.applicant-form textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(105, 106, 239, 0.2);
    font-size: 14px;
    outline: none;
    resize: vertical;
}
.stat-label {
    font-size: 12px;
    color: var(--muted);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-pill {
    padding: 6px 12px;
    background: rgba(40, 134, 247, 0.12);
    border-radius: 999px;
    font-size: 12px;
    color: #1c5fb8;
    font-weight: 600;
    text-decoration: none;
}

.staff-list {
    margin: 8px 0 0;
    padding-left: 16px;
    font-size: 12px;
    color: var(--text);
}

.dropbox-map {
    margin-top: auto;
}

.map-card {
    background: rgba(105, 106, 239, 0.08);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.map-flag {
    font-size: 28px;
}

.map-title {
    font-weight: 600;
    margin-top: 6px;
}

.map-sub {
    font-size: 12px;
    color: var(--muted);
}

.calendar-card {
    margin-top: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(105, 106, 239, 0.12);
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.calendar-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 11px;
    text-align: center;
}

.calendar-grid span {
    padding: 6px 0;
    border-radius: 8px;
    background: rgba(105, 106, 239, 0.06);
}

.calendar-grid span.muted {
    color: #b1b6cc;
    background: transparent;
}

.calendar-grid span.today {
    background: linear-gradient(135deg, var(--primary), var(--accent-3));
    color: #fff;
    font-weight: 600;
}

.calendar-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.mini-divider {
    border: none;
    border-top: 1px solid rgba(105, 106, 239, 0.2);
    margin: 10px 0;
}

.time-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
}

.time-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.app-footer {
    padding: 18px 24px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(105, 106, 239, 0.12);
}

.toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: toastIn 0.3s ease;
    z-index: 50;
}

.bot-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--accent-2), var(--primary));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 600;
    z-index: 40;
}
.bot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.bot-fab-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bot-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.bot-panel {
    position: fixed;
    bottom: 80px;
    left: 24px;
    width: 340px;
    max-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 45;
    animation: fadeIn 0.25s ease;
}

.bot-panel.open {
    display: flex;
}

.bot-header {
    padding: 12px 14px;
    background: linear-gradient(135deg, #a25ddc, var(--accent-2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.bot-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.bot-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.bot-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
}

.bot-msg {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    max-width: 90%;
}

.bot-msg--bot {
    background: rgba(162, 93, 220, 0.12);
}

.bot-msg--user {
    background: rgba(105, 106, 239, 0.18);
    align-self: flex-end;
}

.bot-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 14px 10px;
}

.bot-quick button {
    border: 1px solid rgba(105, 106, 239, 0.2);
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    color: var(--accent-2);
}

.bot-input {
    display: flex;
    border-top: 1px solid rgba(105, 106, 239, 0.1);
}

.bot-input input {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
}

.bot-input button {
    border: none;
    background: var(--accent-2);
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

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

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

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(105, 106, 239, 0.12);
    font-size: 11px;
}

.page-transition {
    animation: fadeIn 0.35s ease;
}

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

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

@media (max-width: 800px) {
    .two-cols {
        grid-template-columns: 1fr;
    }
    .topbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .dashboard-shell {
        grid-template-columns: 1fr;
    }
    .split-card {
        grid-template-columns: 1fr;
    }
    .auth-card {
        margin: 40px auto;
    }
    .app-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .dropbox-shell {
        grid-template-columns: 1fr;
    }
    .dropbox-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .doc-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .doc-actions {
        flex-wrap: wrap;
    }
    .notice-shell {
        grid-template-columns: 1fr;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
}
