:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --danger-color: #e11d48;
    --danger-hover: #be123c;
    --light-gray-bg: #f8fafc;
    --border-color: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --monospace-bg: #e0e7ff;
    --monospace-text: #3730a3;
    --landing-bg-1: #0b1220;
    --landing-bg-2: #111b35;
    --landing-card: rgba(255, 255, 255, 0.08);
    --landing-card-border: rgba(255, 255, 255, 0.14);
    --landing-text: rgba(255, 255, 255, 0.86);
    --landing-muted: rgba(255, 255, 255, 0.64);
}

@media (max-width: 700px) {
    .mk-row {
        grid-template-columns: 1fr;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9fafb;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: 40px auto;
}

.form-container h1, .dashboard-header h1 {
    color: var(--text-dark);
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px; /* Space for icon */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-danger {
    background-color: var(--danger-color);
}
.btn-danger:hover {
    background-color: var(--danger-hover);
}

.message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.message.success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.form-footer {
    margin-top: 25px;
    color: var(--text-light);
}

body.auth-mikhmon {
    background: #2f343a;
    color: rgba(233,236,239,0.88);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-mikhmon .form-container {
    background: #3a3f44;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2px;
    box-shadow: none;
    padding: 28px 26px;
    margin: 0;
}

.auth-mikhmon .form-container h1 {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.2px;
    margin: 8px 0 14px;
}

.auth-mikhmon .auth-subtitle {
    margin: 0 0 16px;
    color: rgba(233,236,239,0.72);
    font-size: 13px;
    line-height: 1.5;
}

.auth-mikhmon .auth-hero-icon {
    color: #00a8e8;
    margin-bottom: 10px;
}

.auth-mikhmon .landing-btn {
    border-radius: 2px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 12px;
    box-shadow: none;
    transform: none;
}

.auth-mikhmon .landing-btn:hover {
    transform: none;
}

.auth-mikhmon .landing-btn-ghost {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.90);
}

.auth-mikhmon .landing-btn-ghost:hover {
    background: rgba(255,255,255,0.10);
}

.auth-mikhmon .form-group {
    margin-bottom: 14px;
}

.auth-mikhmon .auth-links {
    font-size: 12px;
    text-align: center;
    color: rgba(233,236,239,0.7);
}

.auth-mikhmon .auth-links a {
    color: #00a8e8;
    text-decoration: none;
    font-weight: 700;
}

.auth-mikhmon .auth-links a:hover {
    text-decoration: underline;
}

.auth-mikhmon .input-group i {
    color: rgba(255,255,255,0.65);
}

.auth-mikhmon input[type="text"],
.auth-mikhmon input[type="email"],
.auth-mikhmon input[type="password"],
.auth-mikhmon input[type="number"] {
    background: #2f343a;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 2px !important;
    padding: 10px 12px;
    padding-right: 45px;
    font-size: 13px;
    line-height: 1.25;
    caret-color: #fff;
}

.auth-mikhmon input[type="text"]:-webkit-autofill,
.auth-mikhmon input[type="email"]:-webkit-autofill,
.auth-mikhmon input[type="password"]:-webkit-autofill,
.auth-mikhmon input[type="number"]:-webkit-autofill,
.auth-mikhmon input[type="text"]:-webkit-autofill:hover,
.auth-mikhmon input[type="email"]:-webkit-autofill:hover,
.auth-mikhmon input[type="password"]:-webkit-autofill:hover,
.auth-mikhmon input[type="number"]:-webkit-autofill:hover,
.auth-mikhmon input[type="text"]:-webkit-autofill:focus,
.auth-mikhmon input[type="email"]:-webkit-autofill:focus,
.auth-mikhmon input[type="password"]:-webkit-autofill:focus,
.auth-mikhmon input[type="number"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0px 1000px #2f343a inset;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px !important;
    transition: background-color 9999s ease-out 0s;
}

.auth-mikhmon input[type="text"]::placeholder,
.auth-mikhmon input[type="email"]::placeholder,
.auth-mikhmon input[type="password"]::placeholder,
.auth-mikhmon input[type="number"]::placeholder {
    color: rgba(233,236,239,0.55);
}

.auth-mikhmon input[type="text"]:focus,
.auth-mikhmon input[type="email"]:focus,
.auth-mikhmon input[type="password"]:focus,
.auth-mikhmon input[type="number"]:focus {
    border-color: #00a8e8;
    box-shadow: 0 0 0 2px rgba(0,168,232,0.20);
}

.auth-mikhmon button {
    background: #00a8e8;
    border-radius: 2px;
    box-shadow: none;
}

.auth-mikhmon button:hover {
    background: #0092c8;
    box-shadow: none;
}

.auth-mikhmon .message {
    border-radius: 2px;
}

.auth-mikhmon .message.success {
    background: rgba(40,167,69,0.16);
    border-color: rgba(40,167,69,0.45);
    color: #b8f7c2;
}

.auth-mikhmon .message.error {
    background: rgba(220,53,69,0.16);
    border-color: rgba(220,53,69,0.45);
    color: #ffc0c7;
}

.wallet-mikhmon .message {
    border-radius: 2px;
}

.wallet-mikhmon .message.success {
    background: rgba(40,167,69,0.16);
    border-color: rgba(40,167,69,0.45);
    color: #b8f7c2;
}

.wallet-mikhmon .message.error {
    background: rgba(220,53,69,0.16);
    border-color: rgba(220,53,69,0.45);
    color: #ffc0c7;
}

.auth-mikhmon .form-footer {
    margin-top: 16px;
    color: rgba(233,236,239,0.70);
}

.auth-mikhmon .form-footer a {
    color: #00a8e8;
}

@media (max-width: 600px) {
    body.auth-mikhmon {
        padding: 16px;
    }

    .auth-mikhmon .form-container {
        padding: 22px 18px;
    }
}

.code-block {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-block pre {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1.7;
    direction: ltr;
    text-align: left;
}

@media (max-width: 900px) {
    .form-container {
        margin: 24px auto;
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .form-container {
        margin: 18px auto;
        padding: 22px;
        border-radius: 12px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"] {
        padding: 11px 14px;
        padding-right: 42px;
    }

    .input-group i {
        right: 12px;
    }
}

/* Landing page styles (index.php) */
.landing-bg {
    min-height: 100vh;
    background: radial-gradient(1200px 700px at 80% -10%, rgba(79, 70, 229, 0.35), transparent 60%),
                radial-gradient(900px 600px at 10% 10%, rgba(16, 185, 129, 0.22), transparent 55%),
                linear-gradient(180deg, var(--landing-bg-1), var(--landing-bg-2));
    color: var(--landing-text);
}

.landing-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(11, 18, 32, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.landing-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.22);
    border: 1px solid rgba(79, 70, 229, 0.30);
}

.landing-brand-title {
    display: block;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.landing-brand-subtitle {
    display: block;
    font-size: 12px;
    color: var(--landing-muted);
    margin-top: 2px;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.landing-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.landing-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.30);
}

.landing-btn-primary:hover {
    filter: brightness(0.98);
}

.landing-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.landing-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.landing-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.10);
}

.landing-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.landing-hero {
    padding: 56px 0 18px;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.landing-h1 {
    font-size: 44px;
    line-height: 1.15;
    margin: 0 0 14px 0;
    letter-spacing: -0.03em;
}

.landing-highlight {
    background: linear-gradient(90deg, #a5b4fc, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-lead {
    margin: 0 0 20px 0;
    color: var(--landing-muted);
    font-size: 16px;
    max-width: 58ch;
}

.landing-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.landing-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.landing-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    font-size: 13px;
}

.landing-hero-card {
    background: var(--landing-card);
    border: 1px solid var(--landing-card-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.landing-hero-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.landing-hero-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.landing-hero-card-title {
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.landing-hero-card-subtitle {
    color: var(--landing-muted);
    font-size: 13px;
    margin-top: 2px;
}

.landing-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.landing-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 12px;
}

.landing-mini-label {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 700;
    font-size: 12px;
}

.landing-mini-value {
    color: #fff;
    font-weight: 800;
    margin-top: 6px;
}

.landing-hero-card-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
}

.landing-hero-card-note a {
    color: #fff;
    text-decoration: underline;
}

.landing-section {
    padding: 34px 0;
}

.landing-section-alt {
    padding: 38px 0 54px;
}

.landing-h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.landing-subtitle {
    margin: 10px 0 22px 0;
    color: var(--landing-muted);
    max-width: 70ch;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 18px;
}

.landing-feature h3 {
    margin: 12px 0 6px 0;
    font-size: 16px;
    color: #fff;
}

.landing-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
}

.landing-feature-ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.landing-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.landing-step-num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.20);
    border: 1px solid rgba(79, 70, 229, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    flex: 0 0 auto;
}

.landing-step-title {
    font-weight: 800;
    color: #fff;
}

.landing-step-text {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
}

.landing-bottom-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 22px;
}

.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 26px 0;
    background: rgba(0, 0, 0, 0.12);
}

.landing-footer-grid {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.landing-footer-title {
    font-weight: 900;
    color: #fff;
}

.landing-footer-text {
    color: rgba(255, 255, 255, 0.65);
    margin-top: 6px;
    font-size: 14px;
}

.landing-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.landing-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 700;
}

.landing-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.landing-footer-bottom {
    padding-top: 14px;
}

.landing-copyright {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.landing-wa {
    position: fixed;
    bottom: 18px;
    inset-inline-end: 18px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    z-index: 60;
}

.landing-wa:hover {
    filter: brightness(0.98);
    text-decoration: none;
}

.landing-wa i {
    font-size: 22px;
}

@media (max-width: 1000px) {
    .landing-h1 { font-size: 38px; }
    .landing-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .landing-container { padding: 0 14px; }
    .landing-h1 { font-size: 30px; }
    .landing-hero { padding-top: 34px; }
    .landing-btn { width: 100%; justify-content: center; }
    .landing-actions { width: 100%; justify-content: flex-start; }
    .landing-features { grid-template-columns: 1fr; }
    .landing-mini-grid { grid-template-columns: 1fr; }
    .landing-wa { width: 44px; height: 44px; bottom: 14px; inset-inline-end: 14px; }
    .landing-wa i { font-size: 20px; }
}

.wallet-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
}

.wallet-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.wallet-subtitle {
    margin-top: 6px;
    color: var(--text-light);
}

.wallet-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wallet-link {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wallet-link:hover {
    background: #f3f4f6;
    color: var(--text-dark);
    text-decoration: none;
}

.wallet-message .message { margin: 0 0 18px 0; }

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.wallet-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.05);
}

.wallet-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary-color);
}

.wallet-card-label {
    color: var(--text-light);
    font-weight: 700;
    font-size: 13px;
}

.wallet-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 4px;
}

.wallet-currency {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-light);
}

.wallet-card-hint {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 13px;
}

.wallet-form {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-input {
    position: relative;
}

.wallet-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.wallet-input input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wallet-input input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.wallet-btn {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.wallet-btn:hover {
    background-color: var(--primary-hover);
}

.wallet-min {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 13px;
}

.wallet-history {
    margin-top: 0;
}

.wallet-history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wallet-history-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wallet-history-note {
    color: var(--text-light);
    font-weight: 700;
    font-size: 12px;
}

.wallet-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.wallet-table th,
.wallet-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
    font-size: 14px;
}

.wallet-table th {
    background: #f8fafc;
    color: var(--text-light);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.wallet-empty {
    color: var(--text-light);
    text-align: center;
}

.wallet-mono {
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
    direction: ltr;
    text-align: left;
}

.wallet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-weight: 800;
    font-size: 12px;
    background: #f3f4f6;
    color: var(--text-light);
}

.wallet-badge.ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.wallet-badge.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.wallet-badge.bad { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

@media (max-width: 1000px) {
    .wallet-container { margin: 24px auto; padding: 0 14px; }
}

@media (max-width: 900px) {
    .wallet-grid { grid-template-columns: 1fr; }
    .wallet-header { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .wallet-title { font-size: 22px; }
    .wallet-card { padding: 16px; }
    .wallet-card-value { font-size: 24px; }
    .wallet-link { padding: 8px 12px; }
}

.wallet-page {
    background: #f4f6f9;
}

.wallet-navbar {
    background: #343a40;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wallet-navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wallet-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.wallet-brand i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
}

.wallet-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wallet-nav-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.14);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wallet-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
}

.wallet-page .wallet-container {
    margin: 0 auto;
    padding-top: 18px;
}

.wallet-page .wallet-header {
    display: block;
    margin-bottom: 14px;
}

.wallet-page .wallet-title {
    font-size: 22px;
    font-weight: 900;
}

.wallet-page .wallet-subtitle {
    margin-top: 4px;
    font-size: 13px;
}

.wallet-page .wallet-card {
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
    border: 1px solid #dee2e6;
}

.wallet-page .wallet-balance {
    border-top: 3px solid #28a745;
}

.wallet-page .wallet-topup {
    border-top: 3px solid #007bff;
}

.wallet-page .wallet-history {
    border-top: 3px solid #6c757d;
}

.wallet-page .wallet-card-icon {
    border-radius: 8px;
    background: rgba(0,123,255,0.12);
    color: #007bff;
}

.wallet-page .wallet-balance .wallet-card-icon {
    background: rgba(40,167,69,0.12);
    color: #28a745;
}

.wallet-page .wallet-btn {
    background: #007bff;
    border-radius: 6px;
}

.wallet-page .wallet-btn:hover {
    background: #0069d9;
}

.wallet-page .wallet-table {
    min-width: 560px;
}

.wallet-page .wallet-table th {
    background: #343a40;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.wallet-page .wallet-table td {
    background: #fff;
}

.wallet-page .wallet-table-wrap {
    border-radius: 6px;
}

@media (max-width: 900px) {
    .wallet-navbar-inner { padding: 12px 14px; }
}

.wallet-mikhmon {
    background: #2f343a;
    color: #e9ecef;
}

.wallet-mikhmon .wallet-header {
    margin: 0 0 12px 0;
}

.wallet-mikhmon .wallet-title {
    color: #e9ecef;
}

.wallet-mikhmon .wallet-subtitle {
    color: rgba(233,236,239,0.75);
}

.conn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.conn-card {
    background: #3a3f44;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.conn-card:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.conn-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.conn-icon {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,168,232,0.12);
    color: #00a8e8;
    border: 1px solid rgba(0,168,232,0.25);
    flex: 0 0 auto;
}

.conn-title {
    font-weight: 900;
    color: #fff;
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.conn-sub {
    margin-top: 4px;
    font-weight: 800;
    color: rgba(233,236,239,0.75);
    font-size: 12px;
}

.conn-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.conn-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.conn-k {
    color: rgba(233,236,239,0.7);
    font-weight: 800;
}

.conn-v {
    color: #fff;
    font-weight: 900;
    direction: ltr;
    text-align: left;
}

.conn-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.conn-actions form {
    margin: 0;
    flex: 1;
}

.conn-actions .mk-btn {
    width: 100%;
    justify-content: center;
}

.conn-badge {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.12);
    color: #e9ecef;
}

.conn-badge.ok {
    background: rgba(40,167,69,0.18);
    border-color: rgba(40,167,69,0.35);
}

.conn-badge.bad {
    background: rgba(220,53,69,0.18);
    border-color: rgba(220,53,69,0.35);
}

.conn-badge.warn {
    background: rgba(255,193,7,0.18);
    border-color: rgba(255,193,7,0.35);
}

.conn-footnote {
    color: rgba(233,236,239,0.7);
    font-size: 12px;
    font-weight: 800;
    margin-top: 6px;
}

.conn-panel .mk-panel-body {
    background: transparent;
}

@media (max-width: 1100px) {
    .conn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .conn-grid {
        grid-template-columns: 1fr;
    }
}

.mk-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    direction: ltr;
}

.mk-sidebar {
    width: 240px;
    background: #343a40;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 0;
    display: flex;
    flex-direction: column;
    order: 2;
    direction: ltr;
}

.mk-brand {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mk-brand-logo {
    font-weight: 900;
    letter-spacing: 0.6px;
    color: #fff;
}

.mk-sidebar-user {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mk-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
}

.mk-user-name {
    color: rgba(255,255,255,0.9);
    font-weight: 800;
    font-size: 13px;
}

.mk-menu {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.mk-menu-item {
    padding: 10px 16px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    border-left: 0;
    border-right: 3px solid transparent;
}

.mk-menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.mk-menu-item.active {
    background: rgba(0,123,255,0.12);
    border-right-color: #007bff;
    color: #fff;
}

.mk-menu-button {
    background: transparent;
    border: 0;
    width: 100%;
    text-align: start;
    cursor: pointer;
    font: inherit;
}

.mk-menu-button.billing-off {
    color: #fbbf24;
}

.mk-menu-button.billing-on {
    color: rgba(255,255,255,0.9);
}

.mk-input {
    position: relative;
    display: flex;
    align-items: center;
}

.mk-input i {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.mk-input input[type="text"],
.mk-input input[type="email"],
.mk-input input[type="password"],
.mk-input input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    padding-inline-start: 42px;
    padding-inline-end: 12px;
    border-radius: 2px;
    box-sizing: border-box;
}

.mk-btn {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.mk-btn-inline {
    width: auto;
}

.mk-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    order: 1;
    direction: ltr;
}

.mk-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    border-radius: 0;
}

.mk-overlay {
    display: none;
}

@media (max-width: 900px) {
    .mk-sidebar-toggle {
        display: inline-flex;
    }

    .mk-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        transform: translateX(100%);
        height: 100vh;
        z-index: 1200;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        transition: transform 0.2s ease;
    }

    body.mk-sidebar-open .mk-sidebar {
        transform: translateX(0);
    }

    .mk-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1100;
    }

    body.mk-sidebar-open .mk-overlay {
        display: block;
    }

    body.mk-sidebar-open {
        overflow: hidden;
    }
}

.mk-topbar {
    height: 52px;
    background: #343a40;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 12px;
}

.mk-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mk-topbar-title {
    color: #fff;
    font-weight: 900;
}

.mk-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 800;
    font-size: 13px;
}

.mk-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mk-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.mk-lang-btn:hover {
    background: rgba(255,255,255,0.10);
    transform: translateY(-1px);
    text-decoration: none;
}

.mk-content {
    padding: 16px;
}

.mk-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.mk-tile {
    border-radius: 2px;
    padding: 14px;
    color: #fff;
}

.mk-tile-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-tile-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.16);
    border-radius: 2px;
}

.mk-tile-title {
    font-weight: 900;
}

.mk-tile-value {
    margin-top: 10px;
    font-weight: 900;
    font-size: 26px;
    direction: ltr;
    text-align: left;
}

.mk-tile-value span {
    font-size: 12px;
    font-weight: 900;
    opacity: 0.9;
    margin-left: 8px;
}

.mk-tile-sub {
    margin-top: 10px;
    font-weight: 800;
    opacity: 0.95;
}

.mk-tile-blue { background: #00a8e8; }
.mk-tile-green { background: #28a745; }

.mk-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mk-panel {
    background: #3a3f44;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.mk-panel-head {
    background: #343a40;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mk-panel-title {
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mk-panel-note {
    color: rgba(255,255,255,0.75);
    font-weight: 800;
    font-size: 12px;
}

.mk-panel-body {
    padding: 12px;
}

.mk-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.wallet-mikhmon .mk-input i {
    color: rgba(255,255,255,0.65);
}

.wallet-mikhmon .mk-input input[type="number"] {
    background: #2f343a;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 2px;
}

.wallet-mikhmon .mk-input input[type="text"],
.wallet-mikhmon .mk-input input[type="email"],
.wallet-mikhmon .mk-input input[type="password"] {
    background: #2f343a;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 2px;
}

.wallet-mikhmon .mk-input input[type="text"]:-webkit-autofill,
.wallet-mikhmon .mk-input input[type="email"]:-webkit-autofill,
.wallet-mikhmon .mk-input input[type="password"]:-webkit-autofill,
.wallet-mikhmon .mk-input input[type="number"]:-webkit-autofill,
.wallet-mikhmon .mk-input input[type="text"]:-webkit-autofill:hover,
.wallet-mikhmon .mk-input input[type="email"]:-webkit-autofill:hover,
.wallet-mikhmon .mk-input input[type="password"]:-webkit-autofill:hover,
.wallet-mikhmon .mk-input input[type="number"]:-webkit-autofill:hover,
.wallet-mikhmon .mk-input input[type="text"]:-webkit-autofill:focus,
.wallet-mikhmon .mk-input input[type="email"]:-webkit-autofill:focus,
.wallet-mikhmon .mk-input input[type="password"]:-webkit-autofill:focus,
.wallet-mikhmon .mk-input input[type="number"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0px 1000px #2f343a inset;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px !important;
    transition: background-color 9999s ease-out 0s;
}

.wallet-mikhmon .mk-input input[type="text"]:-moz-autofill,
.wallet-mikhmon .mk-input input[type="email"]:-moz-autofill,
.wallet-mikhmon .mk-input input[type="password"]:-moz-autofill,
.wallet-mikhmon .mk-input input[type="number"]:-moz-autofill {
    box-shadow: 0 0 0px 1000px #2f343a inset;
    -moz-text-fill-color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.wallet-mikhmon .mk-input input[type="number"]:focus {
    border-color: #00a8e8;
    box-shadow: 0 0 0 2px rgba(0,168,232,0.2);
}

.wallet-mikhmon .mk-input input[type="text"]:focus,
.wallet-mikhmon .mk-input input[type="email"]:focus,
.wallet-mikhmon .mk-input input[type="password"]:focus {
    border-color: #00a8e8;
    box-shadow: 0 0 0 2px rgba(0,168,232,0.2);
}

.wallet-mikhmon .mk-btn {
    background: #00a8e8;
    border-radius: 2px;
}

.wallet-mikhmon .mk-btn:hover {
    background: #0092c8;
}

.wallet-mikhmon .mk-btn-secondary {
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.92);
}

.wallet-mikhmon .mk-btn-secondary:hover {
    background: rgba(255,255,255,0.10);
}

.wallet-mikhmon .mk-btn-danger {
    background: var(--danger-color);
    border: 1px solid var(--danger-color);
    color: #fff;
}

.wallet-mikhmon .mk-btn-danger:hover {
    filter: brightness(0.95);
}

.wallet-mikhmon .mk-table-wrap {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px;
}

.wallet-mikhmon .mk-table {
    min-width: 720px;
}

.wallet-mikhmon .mk-table th {
    background: #343a40;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.wallet-mikhmon .mk-table td {
    background: #3a3f44;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wallet-mikhmon .wallet-empty {
    color: rgba(255,255,255,0.7);
}

.wallet-mikhmon .mk-badge {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.wallet-mikhmon .mk-badge.ok { background: rgba(40,167,69,0.18); border-color: rgba(40,167,69,0.45); color: #b8f7c2; }
.wallet-mikhmon .mk-badge.warn { background: rgba(255,193,7,0.18); border-color: rgba(255,193,7,0.45); color: #ffe9a6; }
.wallet-mikhmon .mk-badge.bad { background: rgba(220,53,69,0.18); border-color: rgba(220,53,69,0.45); color: #ffc0c7; }

body.wallet-mikhmon {
    background: #2f343a;
    color: rgba(233,236,239,0.88);
}

.wallet-mikhmon .mk-layout {
    background: #2f343a;
    flex-direction: row !important;
    direction: ltr;
}

.wallet-mikhmon .mk-content {
    padding: 12px 14px;
}

.wallet-mikhmon .mk-sidebar {
    background: #2b3036;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 0;
}

.wallet-mikhmon .mk-brand {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wallet-mikhmon .mk-sidebar-user {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wallet-mikhmon .mk-menu-item {
    border-left: 0;
    border-right: 3px solid transparent;
}

.wallet-mikhmon .mk-menu-item.active {
    background: rgba(0,168,232,0.14);
    border-right-color: #00a8e8;
    color: #fff;
}

.wallet-mikhmon .mk-menu-item:hover {
    background: rgba(255,255,255,0.06);
}

.wallet-mikhmon .mk-topbar {
    background: #2b3036;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wallet-mikhmon .mk-topbar-title {
    letter-spacing: 0.2px;
}

.wallet-mikhmon .mk-panel {
    background: #3a3f44;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
}

.wallet-mikhmon .mk-tile {
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}

.wallet-mikhmon .mk-panel-head {
    background: #343a40;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
}

.wallet-mikhmon .mk-panel-title {
    font-size: 13px;
}

.wallet-mikhmon .mk-panel-title i {
    opacity: 0.9;
}

.wallet-mikhmon .mk-panel-note {
    color: rgba(233,236,239,0.7);
}

.wallet-mikhmon .mk-panel-body {
    background: #3a3f44;
}

.wallet-mikhmon .mk-tile-blue { background: #00a8e8; }
.wallet-mikhmon .mk-tile-green { background: #28a745; }

.wallet-mikhmon .mk-content {
    max-width: none;
    margin: 0;
    background: transparent;
}

.wallet-mikhmon .mk-row {
    gap: 10px;
    margin-bottom: 10px;
}

.wallet-mikhmon .mk-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding: 12px;
}

.wallet-mikhmon .mk-tile-top {
    gap: 8px;
}

.wallet-mikhmon .mk-tile-icon {
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.14);
}

.wallet-mikhmon .mk-tile-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-mikhmon .mk-tile-value {
    margin-top: 8px;
    font-size: 24px;
}

.wallet-mikhmon .mk-tile-sub {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wallet-mikhmon .mk-tile-clickable {
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.wallet-mikhmon .mk-tile-clickable:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.wallet-mikhmon .mk-tile-clickable:active {
    transform: translateY(0);
    filter: brightness(0.99);
}

.wallet-mikhmon .mk-tile-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}

.wallet-mikhmon .mk-btn {
    border-radius: 0;
}

.wallet-mikhmon .mk-table-wrap {
    border-radius: 0;
}

.wallet-mikhmon .mk-tile-cta i {
    font-size: 12px;
}

.wallet-mikhmon .mk-panel-body {
    padding: 10px;
}

.wallet-mikhmon .mk-panel-head {
    padding: 9px 12px;
}

@media (max-width: 1000px) {
    .mk-sidebar { width: 220px; }
}

@media (max-width: 900px) {
    .mk-row { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .mk-topbar { position: sticky; top: 0; z-index: 20; }
    .mk-topbar {
        height: auto;
        min-height: 52px;
        padding: 10px 12px;
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .mk-topbar-left { flex: 1 1 220px; }
    .mk-topbar-right { flex: 1 1 220px; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
    .mk-topbar-title { white-space: normal; line-height: 1.2; }
    .mk-topbar-host { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .mk-content {
        padding: 12px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
    .wallet-mikhmon .mk-content { padding: 12px; }
}

@media (max-width: 480px) {
    .mk-topbar-host { max-width: 90px; }
    .wallet-mikhmon .mk-content { padding: 10px; }
    .wallet-mikhmon .mk-tile { padding: 12px; }
    .wallet-mikhmon .mk-tile-icon { width: 32px; height: 32px; }
    .wallet-mikhmon .mk-tile-value { font-size: 22px; }
    .wallet-mikhmon .mk-table { min-width: 620px; }
}
