/* ============================================
   KIOSK STYLE — API Module
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    font-family: 'SFProRegular', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* ============================================
   BODY & PAGE
   ============================================ */
.kiosk-body {
    background: #d5d1cb;
    color: #1a1a1a;
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */
.kiosk-header {
    background: #eae7e2;
    border-radius: 0 0 20px 20px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.kiosk-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.kiosk-header__left {
    flex-shrink: 0;
}

.kiosk-brand {
    font-family: 'SFProBold', sans-serif;
    font-style: italic;
    font-size: 26px;
    color: #1a1a1a;
    letter-spacing: 0;
}

.kiosk-brand__tag {
    font-style: normal;
    font-family: 'SFProMedium', sans-serif;
    font-size: 12px;
    color: #fff;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: super;
    letter-spacing: 1px;
}

/* Navigation */
.kiosk-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kiosk-nav__item {
    padding: 8px 16px;
    border-radius: 12px;
    font-family: 'SFProMedium', sans-serif;
    font-size: 14px;
    color: #666;
    transition: all 0.15s ease;
}

.kiosk-nav__item:hover {
    background: rgba(0,0,0,0.05);
    color: #1a1a1a;
}

.kiosk-nav__item.active {
    background: #1a1a1a;
    color: #fff;
}

/* Header right */
.kiosk-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Workspace switcher */
.kiosk-ws-switcher {
    position: relative;
}

.kiosk-ws-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 12px;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
    max-width: 220px;
}

.kiosk-ws-btn:hover {
    background: rgba(0,0,0,0.1);
}

.kiosk-ws-btn__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kiosk-ws-btn__arrow {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.kiosk-ws-switcher.open .kiosk-ws-btn__arrow {
    transform: rotate(180deg);
}

.kiosk-ws-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 240px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 600;
}

.kiosk-ws-switcher.open .kiosk-ws-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kiosk-ws-dropdown__title {
    padding: 8px 16px 6px;
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kiosk-ws-dropdown__form {
    margin: 0;
}

.kiosk-ws-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    font-family: 'SFProRegular', sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
}

.kiosk-ws-dropdown__item:hover {
    background: #f5f5f5;
}

.kiosk-ws-dropdown__item.active {
    background: #f0ede8;
    font-family: 'SFProSemiBold', sans-serif;
}

.kiosk-ws-dropdown__item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.kiosk-ws-dropdown__check {
    color: #43a047;
    font-size: 14px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Logout */
.kiosk-logout-btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    color: #999;
    transition: all 0.15s;
}

.kiosk-logout-btn:hover {
    background: rgba(200,50,50,0.08);
    color: #c62828;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.kiosk-main {
    padding: 28px 32px 48px;
    min-height: calc(100vh - 64px);
}

.kiosk-main--full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.kiosk-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   LOGIN
   ============================================ */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: #eae7e2;
    border-radius: 24px;
    padding: 48px 44px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.login-card__header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.login-brand {
    font-family: 'SFProBold', sans-serif;
    font-style: italic;
    font-size: 36px;
    color: #1a1a1a;
    text-align: center;
}

.login-brand-tag {
    font-family: 'SFProMedium', sans-serif;
    font-style: normal;
    font-size: 14px;
    color: #fff;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 3px 8px;
    letter-spacing: 1.5px;
}

.login-subtitle {
    font-family: 'SFProRegular', sans-serif;
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 32px;
}

.login-error {
    background: #e05a47;
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field__label {
    display: block;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.login-field__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #d5d1cb;
    font-family: 'SFProRegular', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.login-field__input:focus {
    border-color: #1a1a1a;
    background: #fff;
}

.login-field__input::placeholder {
    color: #aaa;
}

.login-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: none;
    border-radius: 14px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.login-submit:hover {
    background: #333;
}

.login-submit:active {
    transform: scale(0.98);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.ki-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.ki-page-title {
    font-family: 'SFProBold', sans-serif;
    font-size: 28px;
    color: #1a1a1a;
    line-height: 1.2;
}

.ki-page-subtitle {
    font-family: 'SFProRegular', sans-serif;
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
.ki-section {
    margin-bottom: 28px;
}

.ki-section__title {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 14px;
    padding-left: 4px;
}

/* ============================================
   BANK CARDS
   ============================================ */
.ki-banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
}

.ki-bank-card {
    background: #eae7e2;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

.ki-bank-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.ki-bank-card__accent {
    height: 4px;
    background: var(--bank-color, #ccc);
}

.ki-bank-card__body {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
}

.ki-bank-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SFProBold', sans-serif;
    font-size: 22px;
    flex-shrink: 0;
}

.ki-bank-card__info {
    flex: 1;
    min-width: 0;
}

.ki-bank-card__name {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 17px;
    color: #1a1a1a;
}

.ki-bank-card__desc {
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.ki-bank-card__auth {
    font-family: 'SFProRegular', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

.ki-bank-card__action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ki-bank-card__connected {
    font-family: 'SFProMedium', sans-serif;
    font-size: 12px;
    color: #43a047;
    background: rgba(67,160,71,0.1);
    padding: 4px 10px;
    border-radius: 8px;
}

/* ============================================
   INTEGRATIONS LIST
   ============================================ */
.ki-integrations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ki-integration-row {
    background: #eae7e2;
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow 0.2s;
}

.ki-integration-row:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ki-integration-row__left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.ki-integration-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SFProBold', sans-serif;
    font-size: 18px;
    flex-shrink: 0;
}

.ki-integration-row__info {
    flex: 1;
    min-width: 0;
}

.ki-integration-row__name {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ki-integration-row__meta {
    font-family: 'SFProRegular', sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.ki-integration-row__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Status dot */
.ki-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ki-status-dot--on { background: #43a047; }
.ki-status-dot--off { background: #ccc; }

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.ki-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    cursor: pointer;
}

.ki-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ki-toggle__track {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #c5c2bd;
    border-radius: 24px;
    transition: background 0.2s;
}

.ki-toggle__track::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.ki-toggle input:checked + .ki-toggle__track {
    background: #43a047;
}

.ki-toggle input:checked + .ki-toggle__track::before {
    transform: translateX(18px);
}

/* ============================================
   BUTTONS
   ============================================ */
.ki-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 12px;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.ki-btn--primary {
    background: #1a1a1a;
    color: #fff;
}

.ki-btn--primary:hover {
    background: #333;
}

.ki-btn--primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.ki-btn--ghost {
    background: rgba(0,0,0,0.06);
    color: #555;
}

.ki-btn--ghost:hover {
    background: rgba(0,0,0,0.1);
    color: #1a1a1a;
}

.ki-btn--danger-ghost {
    background: transparent;
    color: #c62828;
}

.ki-btn--danger-ghost:hover {
    background: rgba(198,40,40,0.08);
}

.ki-btn--success {
    background: #43a047;
    color: #fff;
}

.ki-btn--success:hover {
    background: #388e3c;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.ki-empty-state {
    background: #eae7e2;
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
}

.ki-empty-state__icon {
    margin-bottom: 16px;
    opacity: 0.5;
}

.ki-empty-state__text {
    font-family: 'SFProMedium', sans-serif;
    font-size: 16px;
    color: #888;
}

.ki-empty-state__hint {
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #aaa;
    margin-top: 6px;
}

/* ============================================
   MODAL
   ============================================ */
.ki-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,26,26,0.5);
    backdrop-filter: blur(4px);
    z-index: 9000;
    justify-content: center;
    align-items: center;
}

.ki-modal-overlay.active {
    display: flex;
}

.ki-modal {
    background: #eae7e2;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(0,0,0,0.2);
}

.ki-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.ki-modal__title {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 18px;
    color: #1a1a1a;
}

.ki-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background 0.15s;
}

.ki-modal__close:hover {
    background: rgba(0,0,0,0.12);
}

.ki-modal__body {
    padding: 20px 28px;
}

.ki-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 28px 24px;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.ki-field {
    margin-bottom: 16px;
}

.ki-field__label {
    display: block;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.ki-req {
    color: #e05a47;
}

.ki-field__input {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #d5d1cb;
    font-family: 'SFProRegular', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.ki-field__input:focus {
    border-color: #1a1a1a;
    background: #fff;
}

.ki-field__input::placeholder {
    color: #aaa;
}

.ki-field__input--mono {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.ki-field__textarea {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #d5d1cb;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #1a1a1a;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, background 0.2s;
}

.ki-field__textarea:focus {
    border-color: #1a1a1a;
    background: #fff;
}

.ki-field__textarea::placeholder {
    color: #aaa;
    font-family: 'SFProRegular', sans-serif;
}

.ki-field__select {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #d5d1cb;
    font-family: 'SFProRegular', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.ki-field__select:focus {
    border-color: #1a1a1a;
    background-color: #fff;
}

/* Auth type tabs */
.ki-auth-tabs {
    display: flex;
    gap: 4px;
    background: #d5d1cb;
    border-radius: 12px;
    padding: 3px;
}

.ki-auth-tab {
    flex: 1;
    padding: 9px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: all 0.15s;
}

.ki-auth-tab:hover {
    color: #555;
}

.ki-auth-tab.active {
    background: #1a1a1a;
    color: #fff;
}

/* ============================================
   ALERTS
   ============================================ */
.kiosk-alert {
    padding: 12px 18px;
    border-radius: 14px;
    font-family: 'SFProMedium', sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
}

.kiosk-alert--success {
    background: rgba(67,160,71,0.12);
    color: #2e7d32;
}

.kiosk-alert--error {
    background: rgba(224,90,71,0.12);
    color: #c62828;
}

.kiosk-alert--warning {
    background: rgba(255,152,0,0.12);
    color: #e65100;
}

.kiosk-alert--info {
    background: rgba(30,136,229,0.12);
    color: #1565c0;
}

/* ============================================
   CARDS (for accounts, statements, etc.)
   ============================================ */
.ki-card {
    background: #eae7e2;
    border-radius: 20px;
    padding: 24px;
}

.ki-card + .ki-card {
    margin-top: 16px;
}

.ki-card__title {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* ============================================
   TABLE
   ============================================ */
.ki-table {
    width: 100%;
    border-collapse: collapse;
}

.ki-table th {
    font-family: 'SFProMedium', sans-serif;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #d0cdc7;
}

.ki-table td {
    font-family: 'SFProRegular', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    padding: 12px;
    border-bottom: 1px solid #e0ddd8;
    vertical-align: middle;
}

.ki-table tr:hover td {
    background: rgba(0,0,0,0.02);
}

.ki-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.ki-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-family: 'SFProMedium', sans-serif;
    font-size: 12px;
}

.ki-badge--success { background: rgba(67,160,71,0.12); color: #2e7d32; }
.ki-badge--error { background: rgba(224,90,71,0.12); color: #c62828; }
.ki-badge--warning { background: rgba(255,152,0,0.12); color: #e65100; }
.ki-badge--info { background: rgba(30,136,229,0.12); color: #1565c0; }
.ki-badge--neutral { background: rgba(0,0,0,0.06); color: #666; }

/* Amount coloring */
.amount--in { color: #2e7d32; }
.amount--out { color: #c62828; }

/* ============================================
   BALANCE CARD (dark)
   ============================================ */
.ki-balance-card {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 24px;
    color: #fff;
    margin-bottom: 16px;
}

.ki-balance-card__bank {
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.ki-balance-card__number {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
    margin: 8px 0;
}

.ki-balance-card__amount {
    font-family: 'SFProBold', sans-serif;
    font-size: 32px;
    color: #fff;
    margin-top: 12px;
}

.ki-balance-card__currency {
    font-family: 'SFProRegular', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-left: 4px;
}

.ki-balance-card__synced {
    font-family: 'SFProRegular', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-top: 8px;
}

/* ============================================
   FILTERS BAR
   ============================================ */
.ki-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ki-filters .ki-field__input,
.ki-filters .ki-field__select {
    width: auto;
    min-width: 160px;
}

/* ============================================
   DOCS STYLES
   ============================================ */
.ki-docs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ki-docs-nav__item {
    padding: 8px 18px;
    border-radius: 12px;
    background: #eae7e2;
    font-family: 'SFProMedium', sans-serif;
    font-size: 14px;
    color: #666;
    transition: all 0.15s;
}

.ki-docs-nav__item:hover {
    background: #e0ddd8;
    color: #1a1a1a;
}

.ki-docs-nav__item.active {
    background: #1a1a1a;
    color: #fff;
}

.ki-docs-endpoint {
    background: #eae7e2;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 12px;
}

.ki-docs-endpoint__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ki-docs-endpoint__method {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-family: 'SFProBold', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.ki-docs-endpoint__method--get { background: rgba(67,160,71,0.12); color: #2e7d32; }
.ki-docs-endpoint__method--post { background: rgba(30,136,229,0.12); color: #1565c0; }
.ki-docs-endpoint__method--delete { background: rgba(224,90,71,0.12); color: #c62828; }

.ki-docs-endpoint__url {
    font-family: 'SFProMedium', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
}

.ki-docs-endpoint__desc {
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #888;
}

.ki-docs-code {
    background: #1a1a1a;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 8px;
    overflow-x: auto;
}

.ki-docs-code pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #d4d4d4;
    line-height: 1.5;
    white-space: pre;
}

/* ============================================
   WEBHOOK LOG
   ============================================ */
.ki-log-entry {
    background: #eae7e2;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ki-log-entry__time {
    font-family: 'SFProMedium', sans-serif;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    min-width: 140px;
}

.ki-log-entry__body {
    flex: 1;
}

.ki-log-entry__type {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
}

.ki-log-entry__payload {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   GRID
   ============================================ */
.ki-grid { display: grid; gap: 16px; }
.ki-grid--2 { grid-template-columns: 1fr 1fr; }
.ki-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ============================================
   SPINNER
   ============================================ */
.ki-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #d5d1cb;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: ki-spin 0.6s linear infinite;
}

@keyframes ki-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .kiosk-header { padding: 0 16px; border-radius: 0 0 16px 16px; }
    .kiosk-header__inner { height: 56px; }
    .kiosk-nav { display: none; }
    .kiosk-main { padding: 20px 16px; }
    .ki-banks-grid { grid-template-columns: 1fr; }
    .ki-bank-card__body { flex-wrap: wrap; }
    .ki-integration-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ki-integration-row__actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
    .ki-grid--2, .ki-grid--3 { grid-template-columns: 1fr; }
    .login-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .ki-bank-card__action { width: 100%; justify-content: flex-end; }
}

/* ============================================
   DOCUMENTATION — Layout
   ============================================ */
.docs-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 92px);
    margin: -28px -32px -48px;
}

.docs-sidebar {
    width: 280px;
    min-width: 280px;
    background: #eae7e2;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.docs-sidebar__header {
    padding: 24px 20px 12px;
    flex-shrink: 0;
}

.docs-sidebar__brand {
    font-family: 'SFProBold', sans-serif;
    font-size: 18px;
    color: #1a1a1a;
    display: block;
}

.docs-sidebar__search {
    padding: 0 16px 12px;
    flex-shrink: 0;
    position: relative;
}

.docs-sidebar__search-input {
    width: 100%;
    padding: 9px 14px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #d5d1cb;
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.docs-sidebar__search-input:focus {
    border-color: #1a1a1a;
    background: #fff;
}

.docs-sidebar__search-input::placeholder {
    color: #aaa;
}

/* Search results dropdown */
.docs-search-results {
    position: absolute;
    top: calc(100% - 4px);
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    padding: 6px 0;
}

.docs-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #333;
    transition: background 0.1s;
}

.docs-search-item:hover {
    background: #f5f5f5;
}

.docs-search-empty {
    padding: 16px;
    text-align: center;
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #999;
}

.docs-sr-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'SFProBold', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(30,136,229,0.12);
    color: #1565c0;
    flex-shrink: 0;
}

.docs-sr-badge--method { background: rgba(67,160,71,0.12); color: #2e7d32; }
.docs-sr-badge--const { background: rgba(255,152,0,0.12); color: #e65100; }
.docs-sr-badge--section { background: rgba(0,0,0,0.06); color: #666; }

/* ============================================
   DOCUMENTATION — Sidebar Tree
   ============================================ */
.docs-tree {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 24px;
}

.docs-tree::-webkit-scrollbar {
    width: 4px;
}

.docs-tree::-webkit-scrollbar-thumb {
    background: #c5c2bd;
    border-radius: 4px;
}

/* Group */
.docs-tree__group {
    margin-bottom: 2px;
}

.docs-tree__group-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: none;
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.1s;
    text-align: left;
}

.docs-tree__group-btn:hover {
    background: rgba(0,0,0,0.04);
}

.docs-tree__group-title {
    flex: 1;
}

.docs-tree__arrow {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: #aaa;
}

.docs-tree__group--open > .docs-tree__group-btn .docs-tree__arrow {
    transform: rotate(180deg);
}

.docs-tree__children {
    display: none;
    padding-left: 12px;
}

.docs-tree__group--open > .docs-tree__children {
    display: block;
}

.docs-tree__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #999;
}

/* Link */
.docs-tree__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #666;
    transition: all 0.1s;
    margin-bottom: 1px;
}

.docs-tree__link:hover {
    background: rgba(0,0,0,0.04);
    color: #333;
}

.docs-tree__link--active {
    background: #1a1a1a;
    color: #fff;
    font-family: 'SFProMedium', sans-serif;
}

.docs-tree__link--active:hover {
    background: #333;
    color: #fff;
}

.docs-tree__link-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-tree__badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    font-family: 'SFProBold', sans-serif;
    font-size: 10px;
    text-align: center;
    line-height: 18px;
    flex-shrink: 0;
}

.docs-tree__badge--class {
    background: rgba(30,136,229,0.15);
    color: #1565c0;
}

.docs-tree__link--active .docs-tree__badge--class {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ============================================
   DOCUMENTATION — Content Area
   ============================================ */
.docs-content {
    flex: 1;
    padding: 32px 40px 48px;
    min-width: 0;
    max-width: 900px;
}

/* ============================================
   DOCUMENTATION — Class View
   ============================================ */
.docs-class__header {
    margin-bottom: 28px;
}

.docs-class__badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.docs-class__name {
    font-family: 'SFProBold', sans-serif;
    font-size: 32px;
    color: #1a1a1a;
    line-height: 1.2;
}

.docs-class__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.docs-class__namespace {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #888;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

.docs-class__extends {
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #888;
}

.docs-class__extends code {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #1565c0;
    background: rgba(30,136,229,0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.docs-class__file {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
}

.docs-class__description {
    margin-bottom: 24px;
    font-family: 'SFProRegular', sans-serif;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.docs-class__desc-detail {
    margin-top: 8px;
    color: #777;
    font-size: 14px;
}

/* Quick nav */
.docs-class__quicknav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0ddd8;
}

.docs-quicknav__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: #eae7e2;
    font-family: 'SFProMedium', sans-serif;
    font-size: 13px;
    color: #555;
    transition: all 0.15s;
}

.docs-quicknav__item:hover {
    background: #e0ddd8;
    color: #1a1a1a;
}

.docs-quicknav__count {
    background: rgba(0,0,0,0.08);
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 11px;
}

/* ============================================
   DOCUMENTATION — Sections
   ============================================ */
.docs-section {
    margin-bottom: 36px;
}

.docs-section__title {
    font-family: 'SFProBold', sans-serif;
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0ddd8;
}

/* ============================================
   DOCUMENTATION — Badges
   ============================================ */
.docs-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'SFProBold', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-badge--class { background: rgba(30,136,229,0.12); color: #1565c0; }
.docs-badge--abstract { background: rgba(156,39,176,0.12); color: #7b1fa2; }
.docs-badge--public { background: rgba(67,160,71,0.12); color: #2e7d32; }
.docs-badge--protected { background: rgba(255,152,0,0.12); color: #e65100; }
.docs-badge--static { background: rgba(0,0,0,0.06); color: #666; }
.docs-badge--has-one { background: rgba(30,136,229,0.12); color: #1565c0; }
.docs-badge--has-many { background: rgba(156,39,176,0.12); color: #7b1fa2; }

/* ============================================
   DOCUMENTATION — Members (constants)
   ============================================ */
.docs-members {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.docs-member {
    padding: 10px 16px;
    background: #eae7e2;
    border-radius: 12px;
}

.docs-member__sig {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-member__name {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #1a1a1a;
}

.docs-member__eq {
    color: #999;
    font-size: 13px;
}

.docs-member__value {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #1565c0;
}

.docs-member__desc {
    font-family: 'SFProRegular', sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ============================================
   DOCUMENTATION — Properties Table
   ============================================ */
.docs-props-table {
    width: 100%;
    border-collapse: collapse;
    background: #eae7e2;
    border-radius: 14px;
    overflow: hidden;
}

.docs-props-table th {
    font-family: 'SFProMedium', sans-serif;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    background: rgba(0,0,0,0.03);
    border-bottom: 1px solid #d8d5cf;
}

.docs-props-table td {
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #333;
    padding: 10px 14px;
    border-bottom: 1px solid #e2dfda;
    vertical-align: middle;
}

.docs-props-table tr:last-child td {
    border-bottom: none;
}

.docs-props-table code {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    background: rgba(0,0,0,0.05);
    padding: 1px 6px;
    border-radius: 4px;
}

.docs-type {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #1565c0;
}

.docs-default {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #888;
}

/* ============================================
   DOCUMENTATION — Methods
   ============================================ */
.docs-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-method {
    padding: 14px 18px;
    background: #eae7e2;
    border-radius: 14px;
    transition: box-shadow 0.15s;
}

.docs-method:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.docs-method__sig {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.docs-method__desc {
    font-family: 'SFProRegular', sans-serif;
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.docs-method__params {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #d8d5cf;
}

.docs-method__param {
    font-family: 'SFProRegular', sans-serif;
    font-size: 12px;
    color: #666;
    padding: 2px 0;
}

.docs-method__param code {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    background: rgba(0,0,0,0.05);
    padding: 1px 5px;
    border-radius: 3px;
}

/* ============================================
   DOCUMENTATION — Manual View
   ============================================ */
.docs-manual__header {
    margin-bottom: 28px;
}

.docs-manual__title {
    font-family: 'SFProBold', sans-serif;
    font-size: 32px;
    color: #1a1a1a;
    line-height: 1.2;
}

.docs-manual__desc {
    font-family: 'SFProRegular', sans-serif;
    font-size: 15px;
    color: #888;
    margin-top: 8px;
}

.docs-manual__content {
    font-family: 'SFProRegular', sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
}

.docs-manual__content p {
    margin-bottom: 12px;
}

.docs-manual__content code {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 4px;
}

.docs-manual__content strong {
    font-family: 'SFProSemiBold', sans-serif;
}

.docs-manual__list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.docs-manual__list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-family: 'SFProRegular', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.docs-manual__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c5c2bd;
}

.docs-manual__list li code {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 4px;
}

/* ============================================
   DOCUMENTATION — Architecture Diagram
   ============================================ */
.docs-arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.docs-arch-row {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.docs-arch-box {
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
    min-width: 180px;
    flex: 0 1 auto;
}

.docs-arch-box--blue { background: rgba(30,136,229,0.12); }
.docs-arch-box--green { background: rgba(67,160,71,0.12); }
.docs-arch-box--orange { background: rgba(255,152,0,0.12); }
.docs-arch-box--gray { background: #eae7e2; }
.docs-arch-box--dark { background: #1a1a1a; }
.docs-arch-box--dark .docs-arch-box__title { color: #fff; }
.docs-arch-box--dark .docs-arch-box__desc { color: rgba(255,255,255,0.5); }

.docs-arch-box__title {
    font-family: 'SFProSemiBold', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
}

.docs-arch-box__desc {
    font-family: 'SFProRegular', sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.docs-arch-arrow {
    font-size: 18px;
    color: #bbb;
    text-align: center;
    letter-spacing: 8px;
}

/* ============================================
   DOCUMENTATION — Responsive
   ============================================ */
@media (max-width: 1024px) {
    .docs-sidebar {
        width: 240px;
        min-width: 240px;
    }
    .docs-content {
        padding: 24px 24px 36px;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
    }
    .docs-sidebar {
        width: 100%;
        min-width: 100%;
        position: relative;
        top: 0;
        height: auto;
        max-height: 50vh;
        border-radius: 0 0 20px 20px;
    }
    .docs-content {
        padding: 20px 16px;
    }
    .docs-class__name,
    .docs-manual__title {
        font-size: 24px;
    }
}
