:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
    --neon-green: #22c55e;
    --neon-yellow: #eab308;
    --neon-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.3);
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--neon-purple);
    border-right-color: var(--neon-pink);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.loader-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--neon-purple);
    animation: pulse 2s ease infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Layout */
#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
}

.hidden {
    display: none !important;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-card);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-glow);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--neon-pink);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 200;
    padding: 16px;
    animation: fadeIn var(--transition-base);
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-bar input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.close-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-primary);
    border-color: var(--neon-red);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    transition: all var(--transition-fast);
}

.nav-item.active {
    color: var(--neon-purple);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

/* Pages */
.pages-container {
    padding: 76px 16px 90px;
    min-height: 100vh;
}

.page {
    display: none;
    animation: fadeIn var(--transition-base);
}

.page.active {
    display: block;
}

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

/* Hero */
.hero-section {
    position: relative;
    padding: 32px 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
    animation: float 6s ease infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.hero-cta {
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transition: all var(--transition-fast);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

/* Sections */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.see-all {
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Categories */
.categories-section {
    margin-bottom: 24px;
}

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

.category-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-card:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.category-card .icon {
    font-size: 32px;
}

.category-card .name {
    font-weight: 600;
    font-size: 14px;
}

.category-card .count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Products */
.popular-section {
    margin-bottom: 24px;
}

.products-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 160px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--neon-purple);
}

.product-card .image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.product-card .info {
    padding: 12px;
}

.product-card .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-green);
}

/* Promo Banner */
.promo-banner {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.promo-glow {
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.promo-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Catalog Page */
.catalog-header {
    margin-bottom: 20px;
}

.catalog-header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.tab.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    color: white;
}

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

/* Product Detail */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 8px 0;
}

.back-btn:hover {
    color: var(--text-primary);
}

.product-hero {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.product-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.variations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.variation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.variation-item:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

.variation-item.selected {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 0 1px var(--neon-purple);
}

.variation-item .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.variation-item .name {
    font-weight: 600;
    font-size: 15px;
}

.variation-item .stock {
    font-size: 12px;
    color: var(--text-muted);
}

.variation-item .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-green);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-selector button:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
}

.quantity-selector .value {
    font-size: 20px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
}

.btn-large {
    padding: 16px;
    font-size: 17px;
}

/* Cart */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.cart-item .image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-item .details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

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

.cart-item .price {
    font-weight: 700;
    color: var(--neon-green);
    font-size: 16px;
}

.cart-item .remove-btn {
    background: none;
    border: none;
    color: var(--neon-red);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.cart-summary {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-row.total span:last-child {
    color: var(--neon-green);
}

.checkout-btn {
    margin-top: 16px;
}

/* Checkout */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.promo-input-group {
    display: flex;
    gap: 8px;
}

.promo-input-group input {
    flex: 1;
}

.promo-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.promo-message.success {
    color: var(--neon-green);
}

.promo-message.error {
    color: var(--neon-red);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-method {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
}

.payment-method.selected {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 0 1px var(--neon-purple);
}

.payment-method .icon {
    font-size: 24px;
}

.payment-method .info {
    flex: 1;
}

.payment-method .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.payment-method .details {
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-summary {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

/* Orders */
.orders-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.orders-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    color: white;
}

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

.order-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.order-card:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

.order-card .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-card .order-number {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
}

.order-card .status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-created { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }
.status-awaiting_payment { background: rgba(234, 179, 8, 0.1); color: var(--neon-yellow); }
.status-paid { background: rgba(6, 182, 212, 0.1); color: var(--neon-cyan); }
.status-processing { background: rgba(168, 85, 247, 0.1); color: var(--neon-purple); }
.status-completed { background: rgba(34, 197, 94, 0.1); color: var(--neon-green); }
.status-cancelled { background: rgba(239, 68, 68, 0.1); color: var(--neon-red); }
.status-refunded { background: rgba(236, 72, 153, 0.1); color: var(--neon-pink); }

.order-card .items {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.order-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .total {
    font-weight: 700;
    font-size: 16px;
    color: var(--neon-green);
}

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

/* Order Detail */
.order-detail-header {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.order-detail-header .status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.order-detail-header .order-number {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.order-detail-header .order-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.order-item-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

.payment-instructions {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.payment-instructions h3 {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-instructions .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.payment-instructions .details {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.payment-instructions .details strong {
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.action-buttons button {
    flex: 1;
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-bottom: 24px;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.profile-info h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.menu-item:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

.menu-item .menu-icon {
    font-size: 24px;
}

.menu-item .menu-text {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.menu-item svg {
    color: var(--text-muted);
}

.admin-item {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(168, 85, 247, 0.3);
}

/* Admin Panel */
.admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    color: white;
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

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

.stat-card-large {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card-large:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-card-large .stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-card-large .stat-value {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-card-large .stat-label {
    font-size: 13px;
}

.admin-filter {
    margin-bottom: 16px;
}

.admin-filter select,
.admin-filter input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-order-item {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.admin-order-item .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-order-item .actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-order-item .actions button {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-order-item .actions button:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: toastIn var(--transition-base);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.toast.success {
    border-color: var(--neon-green);
    background: rgba(34, 197, 94, 0.1);
}

.toast.error {
    border-color: var(--neon-red);
    background: rgba(239, 68, 68, 0.1);
}

.toast.warning {
    border-color: var(--neon-yellow);
    background: rgba(234, 179, 8, 0.1);
}

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

/* Skeleton Loading */
.skeleton-card,
.skeleton-product,
.skeleton-order,
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-glass) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

.skeleton-card {
    height: 100px;
}

.skeleton-product {
    flex: 0 0 160px;
    height: 200px;
}

.skeleton-order {
    height: 120px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn var(--transition-base);
}

.modal-sheet {
    width: 100%;
    max-width: 430px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    animation: slideUp var(--transition-base);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* Focus */
*:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 2px;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

/* GPT v5 admin catalog editor */
.admin-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.admin-mini-list,
.admin-variation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.admin-mini-row,
.admin-variation-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

.inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}

.inline-actions button {
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 11px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.form-section > input,
.form-section > textarea,
.form-section > select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.admin-form textarea {
    min-height: 82px;
    resize: vertical;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto !important;
}

@media (max-width: 420px) {
    .admin-actions-row {
        grid-template-columns: 1fr;
    }
}

/* GPT v9: dynamic product requirements / region chips */
.product-requirements {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.12));
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
}
.product-requirements .form-group { margin-bottom: 14px; }
.product-requirements .form-group:last-child { margin-bottom: 0; }
.requirement-help {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}
.region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.region-chip {
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    font-weight: 700;
    font-size: 13px;
}
.region-chip.selected {
    border-color: var(--neon-yellow, #ffd21f);
    background: rgba(255, 210, 31, 0.16);
    color: var(--neon-yellow, #ffd21f);
    box-shadow: 0 0 14px rgba(255, 210, 31, 0.18);
}
.target-summary {
    margin-top: 4px;
    line-height: 1.35;
}
.admin-form textarea#product-region-options {
    min-height: 110px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}


/* ===== KADI v10 UI redesign: frontend-only visual layer ===== */
:root {
    --bg-primary: #07090d;
    --bg-secondary: #0d1118;
    --bg-card: rgba(255,255,255,0.055);
    --bg-glass: rgba(255,255,255,0.075);
    --neon-purple: #f6c84c;
    --neon-pink: #ffd86a;
    --neon-cyan: #f6c84c;
    --neon-yellow: #f6c84c;
    --shadow-glow: 0 18px 45px rgba(246,200,76,0.18);
    --border-color: rgba(255,255,255,0.10);
}

body {
    background:
        radial-gradient(circle at 20% 0%, rgba(246,200,76,.12), transparent 34%),
        radial-gradient(circle at 95% 12%, rgba(255,255,255,.06), transparent 26%),
        linear-gradient(180deg, #080a0f 0%, #050609 100%);
}

#app { background: transparent; }
.top-bar {
    height: 74px;
    padding: 10px 14px;
    background: rgba(7,9,13,.82);
    border-bottom: 1px solid rgba(246,200,76,.12);
}
.kadi-logo-block { gap: 10px; }
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f6c84c, #b78316);
    color: #111;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(246,200,76,.24);
}
.logo-copy { display:flex; flex-direction:column; line-height:1; gap: 4px; }
.logo-text {
    font-size: 23px;
    letter-spacing: 1px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}
.logo-subtitle {
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #f6c84c;
    font-weight: 800;
}
.wallet-pill {
    border: 1px solid rgba(246,200,76,.25);
    background: rgba(246,200,76,.10);
    color: #fff;
    min-width: 96px;
    height: 42px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0 10px;
    text-align: left;
}
.wallet-pill-label { color: var(--text-muted); font-size: 10px; line-height: 1; }
#header-balance { color: #f6c84c; font-size: 12px; font-weight: 900; white-space: nowrap; }
.icon-btn {
    border-radius: 16px;
    background: rgba(255,255,255,.06);
}
.icon-btn:hover, .icon-btn:active {
    border-color: rgba(246,200,76,.45);
    box-shadow: 0 0 0 4px rgba(246,200,76,.08);
}
.badge { background: #f6c84c; color: #111; }
.pages-container { padding-top: 88px; padding-bottom: 102px; }

.kadi-hero, .hero-section {
    min-height: 190px;
    border-radius: 28px;
    margin: 6px 0 18px;
    background:
        linear-gradient(135deg, rgba(246,200,76,.24), rgba(246,200,76,.05) 42%, rgba(255,255,255,.035)),
        radial-gradient(circle at 75% 18%, rgba(246,200,76,.28), transparent 34%),
        #10131a;
    border: 1px solid rgba(246,200,76,.18);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}
.hero-content { padding: 24px; }
.hero-kicker {
    display:inline-flex;
    color:#111;
    background:#f6c84c;
    border-radius:999px;
    padding:6px 10px;
    font-size:11px;
    font-weight:900;
    margin-bottom:12px;
}
.hero-title {
    max-width: 280px;
    font-size: 31px;
    line-height: 0.98;
    letter-spacing: -1px;
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}
.hero-subtitle { max-width: 300px; color: rgba(255,255,255,.68); font-size: 13px; margin-top: 10px; }
.hero-actions { display:flex; gap:10px; margin-top:18px; }
.hero-cta, .btn-primary, .checkout-btn {
    background: linear-gradient(135deg, #f6c84c, #d99a20) !important;
    color: #121212 !important;
    border: none !important;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(246,200,76,.22);
}
.hero-ghost, .btn-secondary {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.075);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    font-weight: 800;
}

.kadi-quick-actions, .quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin: 0 0 20px;
}
.quick-action {
    min-height: 76px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.055);
    color: #fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 3px;
}
.quick-action span { font-size: 22px; }
.quick-action b { font-size: 12px; }
.quick-action small { font-size: 10px; color: var(--text-muted); }
.section-header { margin-bottom: 12px; }
.section-header h2, .catalog-header h1, .page h1 { font-family: var(--font-display); letter-spacing: -0.4px; }
.see-all { color: #f6c84c; font-weight: 900; }
.categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.category-card {
    min-height: 92px;
    border-radius: 22px;
    padding: 14px 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.10);
    text-align: center;
}
.category-card .icon { font-size: 27px; margin-bottom: 6px; }
.category-card .name { font-size: 12px; font-weight: 900; }
.category-hint { margin-top: 4px; font-size: 10px; color: #f6c84c; }
.products-scroll { gap: 12px; padding-bottom: 6px; }
.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.product-card {
    min-width: 158px;
    border-radius: 24px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 14px 36px rgba(0,0,0,.24);
}
.product-card .image {
    height: 112px;
    border-radius: 19px;
    background:
      radial-gradient(circle at 60% 20%, rgba(246,200,76,.25), transparent 36%),
      linear-gradient(135deg, rgba(246,200,76,.16), rgba(255,255,255,.06));
    display:grid;
    place-items:center;
    font-size: 46px;
    overflow:hidden;
}
.product-card .image img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.product-card .info { padding: 10px 3px 2px; }
.product-badge {
    display:inline-flex;
    align-items:center;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(246,200,76,.12);
    color: #f6c84c;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 6px;
}
.product-card .name { font-size: 14px; line-height: 1.2; min-height: 34px; }
.product-card .price { color: #f6c84c; font-size: 13px; font-weight: 900; margin-top: 6px; }
.category-tabs, .orders-filter, .admin-tabs { gap: 8px; }
.tab, .filter-btn, .admin-tab {
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.tab.active, .filter-btn.active, .admin-tab.active {
    background: rgba(246,200,76,.18);
    color: #f6c84c;
    border-color: rgba(246,200,76,.28);
}

.product-hero {
    min-height: 180px;
    border-radius: 28px;
    background:
      radial-gradient(circle at 70% 24%, rgba(246,200,76,.28), transparent 35%),
      linear-gradient(135deg, rgba(246,200,76,.17), rgba(255,255,255,.05));
    border: 1px solid rgba(246,200,76,.16);
    font-size: 72px;
}
.product-hero img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.product-name { font-size: 26px; margin: 18px 0 4px; }
.product-description { color: var(--text-secondary); margin-bottom: 16px; }
.product-requirements, .form-section, .payment-instructions, .checkout-summary, .cart-summary, .profile-header, .stat-card, .stat-card-large, .menu-list, .order-card, .admin-order-item, .p2p-box {
    border-radius: 24px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.095);
}
.form-group input, .promo-input-group input, select, textarea, #admin-user-search {
    border-radius: 17px !important;
    background: rgba(0,0,0,.28) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
.form-group input:focus, .promo-input-group input:focus, textarea:focus {
    border-color: rgba(246,200,76,.55) !important;
    box-shadow: 0 0 0 4px rgba(246,200,76,.10) !important;
}
.region-chips { display:flex; flex-wrap:wrap; gap:9px; }
.region-chip {
    border-radius: 999px;
    padding: 10px 13px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.11);
    color: #fff;
    font-weight: 800;
}
.region-chip.selected {
    background: rgba(246,200,76,.18);
    border-color: rgba(246,200,76,.42);
    color: #f6c84c;
}
.variation-item {
    border-radius: 20px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
}
.variation-item.selected {
    border-color: rgba(246,200,76,.45);
    background: rgba(246,200,76,.11);
    box-shadow: 0 12px 26px rgba(246,200,76,.09);
}
.variation-item .price, .amount, .summary-row.total span:last-child { color: #f6c84c !important; }
.quantity-selector { border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.10); }
.quantity-selector button { color: #f6c84c; }

.bottom-nav {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: 406px;
    height: 72px;
    margin: 0 auto;
    border-radius: 26px;
    background: rgba(12,14,20,.86);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 55px rgba(0,0,0,.42);
}
.nav-item { border-radius: 20px; color: var(--text-muted); }
.nav-item svg { width: 21px; height: 21px; }
.nav-item span { font-size: 10px; font-weight: 800; }
.nav-item.active {
    color: #111;
    background: linear-gradient(135deg, #f6c84c, #d99a20);
}
.nav-item.active svg { stroke: #111; }

.status-completed, .status-paid { color: #29e38b !important; }
.status-processing, .status-awaiting_payment, .status-payment_submitted { color: #f6c84c !important; }
.status-cancelled, .status-refunded { color: #ff6b6b !important; }
.toast { border-radius: 18px; }
.modal-content { border-radius: 28px; background: #11151d; border: 1px solid rgba(255,255,255,.11); }

@media (max-width: 380px) {
    .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wallet-pill { display:none; }
}


/* v11 i18n language switcher */
.language-select {
    width: 54px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(246, 200, 76, 0.25);
    background: rgba(246, 200, 76, 0.08);
    color: #f6c84c;
    font-weight: 900;
    font-size: 12px;
    text-align: center;
    outline: none;
    cursor: pointer;
}
.language-select option {
    background: #111827;
    color: #ffffff;
}


/* KADI Pay v4 — clean payment screen, not competitor copy */
.kadi-pay-v4 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background:
        radial-gradient(circle at 50% -12%, rgba(246, 200, 76, .13), transparent 32%),
        radial-gradient(circle at 85% 86%, rgba(246, 200, 76, .08), transparent 30%),
        linear-gradient(180deg, #080808 0%, #070707 100%);
    color: #fff;
    box-sizing: border-box;
    padding: calc(14px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
}

.kadi-pay-v4.active {
    display: block;
}

.kadi-pay-v4-inner {
    max-width: 520px;
    margin: 0 auto;
}

.kadi-pay-v4-top {
    display: grid;
    grid-template-columns: 86px 1fr 70px;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
}

.kadi-pay-v4-back,
.kadi-pay-v4-lang {
    height: 44px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.045);
    color: #fff;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 900;
}

.kadi-pay-v4-back {
    text-align: left;
    padding: 0 14px;
}

.kadi-pay-v4-lang {
    text-align: center;
}

.kadi-pay-v4-brand {
    text-align: center;
}

.kadi-pay-v4-brand strong {
    display: block;
    font-size: 31px;
    line-height: 1;
    letter-spacing: 1.5px;
    font-weight: 1000;
}

.kadi-pay-v4-brand span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.36);
    font-size: 9px;
    letter-spacing: 2.8px;
    font-weight: 900;
}

.kadi-pay-v4-caption {
    margin: 0 0 18px;
    color: rgba(255,255,255,.46);
    font-size: 14px;
    font-weight: 1000;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1.45;
}

.kadi-pay-v4-amount-box {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 20px 56px rgba(0,0,0,.42);
}

.kadi-pay-v4-input-wrap {
    height: 76px;
    display: grid;
    grid-template-columns: 32px 1fr 46px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 22px;
    background: rgba(12,12,14,.92);
    border: 1.5px solid rgba(246,200,76,.65);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.025),
        0 0 20px rgba(246,200,76,.065);
}

.kadi-pay-v4-icon {
    color: #f6c84c;
    font-size: 20px;
    font-weight: 900;
}

#kadi-pay-v4-amount {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 34px;
    line-height: 76px;
    font-weight: 900;
    letter-spacing: .3px;
    caret-color: #f6c84c;
}

#kadi-pay-v4-amount::placeholder {
    color: rgba(255,255,255,.24);
    -webkit-text-fill-color: rgba(255,255,255,.24);
}

.kadi-pay-v4-currency {
    text-align: right;
    color: rgba(255,255,255,.45);
    font-size: 14px;
    font-weight: 1000;
}

.kadi-pay-v4-limits {
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.065);
}

.kadi-pay-v4-limits-title {
    margin: 0 0 17px;
    font-size: 16px;
    font-weight: 1000;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.kadi-pay-v4-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 13px 0;
    color: rgba(255,255,255,.45);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.kadi-pay-v4-row strong {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: .2px;
}

.kadi-pay-v4-submit {
    width: 100%;
    height: 66px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #f6c84c 0%, #ffd700 100%);
    color: #111;
    font-size: 17px;
    font-weight: 1000;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 16px 36px rgba(255, 215, 0, .22);
}

.kadi-pay-v4-error {
    min-height: 22px;
    margin-top: 12px;
    text-align: center;
    color: #ff6868;
    font-size: 13px;
    font-weight: 800;
}

.kadi-pay-v4-help {
    margin-top: 18px;
    color: rgba(255,255,255,.34);
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

@media (max-width: 380px) {
    .kadi-pay-v4 {
        padding-left: 14px;
        padding-right: 14px;
    }

    .kadi-pay-v4-top {
        grid-template-columns: 78px 1fr 62px;
    }

    .kadi-pay-v4-brand strong {
        font-size: 27px;
    }

    .kadi-pay-v4-caption {
        font-size: 12px;
        letter-spacing: 5px;
    }

    #kadi-pay-v4-amount {
        font-size: 30px;
    }

    .kadi-pay-v4-row strong {
        font-size: 17px;
    }
}


/* KADI Pay v5 — cleaner screen with quick amounts */
.kadi-pay-v4 {
    padding: calc(12px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom)) !important;
    background:
        radial-gradient(circle at 50% -14%, rgba(246,200,76,.11), transparent 34%),
        radial-gradient(circle at 82% 88%, rgba(246,200,76,.07), transparent 28%),
        #080808 !important;
}

.kadi-pay-v4-top {
    margin-bottom: 30px !important;
}

.kadi-pay-v4-brand strong {
    font-size: 32px !important;
    letter-spacing: 1.2px !important;
}

.kadi-pay-v4-brand span {
    margin-top: 5px !important;
    font-size: 9px !important;
    letter-spacing: 2.4px !important;
    color: rgba(255,255,255,.34) !important;
}

.kadi-pay-v4-caption {
    margin: 0 0 18px !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1.08 !important;
    font-weight: 1000 !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important;
}

.kadi-pay-v4-caption::before {
    content: "KADI WALLET";
    display: block;
    margin-bottom: 10px;
    color: #f6c84c;
    font-size: 12px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: 3.5px;
}

.kadi-pay-v4-amount-box {
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 26px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.38) !important;
}

.kadi-pay-v4-input-wrap {
    height: 72px !important;
    border-radius: 22px !important;
    grid-template-columns: 34px 1fr 45px !important;
    padding: 0 17px !important;
    background: rgba(10,10,11,.92) !important;
    border: 1.35px solid rgba(246,200,76,.70) !important;
}

.kadi-pay-v4-icon {
    font-size: 19px !important;
}

#kadi-pay-v4-amount {
    font-size: 34px !important;
    line-height: 72px !important;
    font-weight: 900 !important;
}

.kadi-pay-v4-currency {
    font-size: 14px !important;
    color: rgba(255,255,255,.48) !important;
}

.kadi-pay-v5-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin: 0 0 18px;
}

.kadi-pay-v5-chip {
    height: 42px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.03));
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.kadi-pay-v5-chip.active {
    background: linear-gradient(135deg, rgba(246,200,76,.28), rgba(246,200,76,.10));
    border-color: rgba(246,200,76,.55);
    color: #f6c84c;
}

.kadi-pay-v5-chip:active {
    transform: scale(.97);
}

.kadi-pay-v4-limits {
    margin-bottom: 20px !important;
    padding: 20px 22px !important;
    border-radius: 25px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012)) !important;
}

.kadi-pay-v4-limits-title {
    margin: 0 0 15px !important;
    font-size: 15px !important;
    letter-spacing: 4px !important;
}

.kadi-pay-v4-row {
    margin: 11px 0 !important;
    font-size: 14px !important;
    letter-spacing: .8px !important;
}

.kadi-pay-v4-row strong {
    font-size: 18px !important;
    font-weight: 900 !important;
}

.kadi-pay-v4-submit {
    height: 64px !important;
    border-radius: 24px !important;
    font-size: 17px !important;
    letter-spacing: 3px !important;
    box-shadow: 0 15px 32px rgba(255,215,0,.20) !important;
}

.kadi-pay-v4-help {
    margin-top: 16px !important;
    color: rgba(255,255,255,.32) !important;
    font-size: 12px !important;
}

@media (max-width: 380px) {
    .kadi-pay-v4-caption {
        font-size: 25px !important;
    }

    #kadi-pay-v4-amount {
        font-size: 30px !important;
    }

    .kadi-pay-v5-chips {
        gap: 7px;
    }

    .kadi-pay-v5-chip {
        height: 40px;
        font-size: 13px;
    }

    .kadi-pay-v4-row strong {
        font-size: 16px !important;
    }
}


/* KADI Pay v6 — softer premium gold, cleaner title, better back button */
:root {
    --kadi-premium-gold: #c9a24a;
    --kadi-premium-gold-2: #b88d35;
    --kadi-premium-text: #f4f1ea;
    --kadi-premium-muted: rgba(244, 241, 234, .52);
}

.kadi-pay-v4 {
    background:
        radial-gradient(circle at 50% -10%, rgba(201,162,74,.09), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(201,162,74,.055), transparent 30%),
        linear-gradient(180deg, #080808 0%, #050505 100%) !important;
}

/* Верхняя строка */
.kadi-pay-v4-top {
    grid-template-columns: 82px 1fr 58px !important;
    margin-bottom: 28px !important;
}

/* Кнопка назад — легче и аккуратнее */
.kadi-pay-v4-back {
    height: 42px !important;
    padding: 0 13px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    background: rgba(255,255,255,.028) !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

/* RU тоже легче */
.kadi-pay-v4-lang {
    height: 42px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    background: rgba(255,255,255,.028) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Бренд */
.kadi-pay-v4-brand strong {
    color: var(--kadi-premium-text) !important;
    font-size: 31px !important;
    font-weight: 850 !important;
    letter-spacing: .8px !important;
}

.kadi-pay-v4-brand span {
    color: rgba(255,255,255,.35) !important;
    font-size: 9px !important;
    letter-spacing: 2.3px !important;
}

/* KADI WALLET */
.kadi-pay-v4-caption::before {
    color: var(--kadi-premium-gold) !important;
    font-size: 12px !important;
    letter-spacing: 3px !important;
    font-weight: 800 !important;
}

/* Заголовок — не такой жирный и грубый */
.kadi-pay-v4-caption {
    color: var(--kadi-premium-text) !important;
    font-size: 30px !important;
    line-height: 1.06 !important;
    font-weight: 760 !important;
    letter-spacing: -0.8px !important;
    margin-bottom: 18px !important;
}

/* Карточка поля суммы */
.kadi-pay-v4-amount-box {
    padding: 12px !important;
    border-radius: 25px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014)) !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.38) !important;
}

/* Поле ввода — золото мягче */
.kadi-pay-v4-input-wrap {
    height: 72px !important;
    border-radius: 21px !important;
    background: rgba(10,10,11,.92) !important;
    border: 1.35px solid rgba(201,162,74,.62) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.025),
        0 0 18px rgba(201,162,74,.055) !important;
}

.kadi-pay-v4-icon {
    color: var(--kadi-premium-gold) !important;
    opacity: .85 !important;
}

#kadi-pay-v4-amount {
    color: var(--kadi-premium-text) !important;
    -webkit-text-fill-color: var(--kadi-premium-text) !important;
    font-size: 34px !important;
    font-weight: 760 !important;
    caret-color: var(--kadi-premium-gold) !important;
}

.kadi-pay-v4-currency {
    color: rgba(255,255,255,.45) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

/* Быстрые суммы — оставляем, но спокойнее */
.kadi-pay-v5-chips {
    gap: 8px !important;
    margin-bottom: 18px !important;
}

.kadi-pay-v5-chip {
    height: 40px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    background: rgba(255,255,255,.035) !important;
    color: rgba(255,255,255,.76) !important;
    font-size: 14px !important;
    font-weight: 720 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.kadi-pay-v5-chip.active {
    background: rgba(201,162,74,.12) !important;
    border-color: rgba(201,162,74,.45) !important;
    color: #e4c678 !important;
}

/* Лимиты — меньше “кричат” */
.kadi-pay-v4-limits {
    padding: 20px 22px !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012)) !important;
    border: 1px solid rgba(255,255,255,.055) !important;
}

.kadi-pay-v4-limits-title {
    color: var(--kadi-premium-text) !important;
    font-size: 15px !important;
    font-weight: 760 !important;
    letter-spacing: 3px !important;
}

.kadi-pay-v4-row {
    color: rgba(255,255,255,.43) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    letter-spacing: .3px !important;
}

.kadi-pay-v4-row strong {
    color: var(--kadi-premium-text) !important;
    font-size: 18px !important;
    font-weight: 780 !important;
}

/* Главная кнопка — не кислотная, а золото */
.kadi-pay-v4-submit {
    height: 62px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, var(--kadi-premium-gold) 0%, var(--kadi-premium-gold-2) 100%) !important;
    color: #111 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow:
        0 12px 26px rgba(201,162,74,.17),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.kadi-pay-v4-help {
    color: rgba(255,255,255,.32) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

@media (max-width: 380px) {
    .kadi-pay-v4-caption {
        font-size: 27px !important;
    }

    #kadi-pay-v4-amount {
        font-size: 31px !important;
    }
}


/* KADI Pay v7 — softer CTA button */
.kadi-pay-v4-submit,
.kadi-pay-v4 button#kadi-pay-v4-submit {
    background: linear-gradient(180deg, #caa24a 0%, #aa7f2f 100%) !important;
    color: #111 !important;
    box-shadow:
        0 10px 22px rgba(170,127,47,.16),
        inset 0 1px 0 rgba(255,255,255,.14) !important;
}

.kadi-pay-v4-submit:active,
.kadi-pay-v4 button#kadi-pay-v4-submit:active {
    background: linear-gradient(180deg, #b88f3a 0%, #96702a 100%) !important;
    transform: scale(.985);
}


/* KADI Pay FINAL — selected richer premium mockup */
:root {
    --kadi-final-gold: #d8aa3f;
    --kadi-final-gold-2: #bd842c;
    --kadi-final-gold-soft: rgba(216,170,63,.22);
    --kadi-final-text: #f7f3ea;
    --kadi-final-muted: rgba(247,243,234,.50);
}

/* Main screen */
.kadi-pay-v4 {
    background:
        radial-gradient(circle at 50% -12%, rgba(216,170,63,.13), transparent 34%),
        radial-gradient(circle at 84% 88%, rgba(216,170,63,.08), transparent 30%),
        linear-gradient(180deg, #080808 0%, #050505 100%) !important;
}

/* Top */
.kadi-pay-v4-top {
    grid-template-columns: 74px 1fr 58px !important;
    margin-bottom: 26px !important;
}

.kadi-pay-v4-back {
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.025) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.kadi-pay-v4-lang {
    height: 40px !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.025) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    color: rgba(255,255,255,.90) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

/* Brand */
.kadi-pay-v4-brand strong {
    color: var(--kadi-final-text) !important;
    font-size: 32px !important;
    font-weight: 850 !important;
    letter-spacing: .8px !important;
}

.kadi-pay-v4-brand span {
    color: rgba(255,255,255,.36) !important;
    font-size: 9px !important;
    letter-spacing: 2.4px !important;
}

/* KADI WALLET + title */
.kadi-pay-v4-caption::before {
    color: var(--kadi-final-gold) !important;
    font-size: 12px !important;
    letter-spacing: 3.2px !important;
    font-weight: 850 !important;
}

.kadi-pay-v4-caption {
    color: var(--kadi-final-text) !important;
    font-size: 31px !important;
    line-height: 1.08 !important;
    font-weight: 780 !important;
    letter-spacing: -0.7px !important;
    margin-bottom: 18px !important;
}

/* Amount card */
.kadi-pay-v4-amount-box {
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 25px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.014)) !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.42) !important;
}

/* Remove square icon */
.kadi-pay-v4-icon {
    display: none !important;
}

.kadi-pay-v4-input-wrap {
    height: 72px !important;
    grid-template-columns: 1fr auto !important;
    padding: 0 20px !important;
    border-radius: 21px !important;
    background: rgba(10,10,11,.94) !important;
    border: 1.35px solid rgba(216,170,63,.66) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.02),
        0 0 22px rgba(216,170,63,.07) !important;
}

#kadi-pay-v4-amount {
    color: var(--kadi-final-text) !important;
    -webkit-text-fill-color: var(--kadi-final-text) !important;
    font-size: 34px !important;
    font-weight: 760 !important;
    caret-color: var(--kadi-final-gold) !important;
}

.kadi-pay-v4-currency {
    color: var(--kadi-final-gold) !important;
    font-size: 15px !important;
    font-weight: 850 !important;
}

/* Quick amounts */
.kadi-pay-v5-chips {
    gap: 8px !important;
    margin-bottom: 18px !important;
}

.kadi-pay-v5-chip {
    height: 40px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(255,255,255,.065) !important;
    color: rgba(255,255,255,.74) !important;
    font-size: 14px !important;
    font-weight: 720 !important;
    box-shadow: none !important;
}

.kadi-pay-v5-chip.active {
    background: rgba(216,170,63,.14) !important;
    border-color: rgba(216,170,63,.48) !important;
    color: #e8c66d !important;
}

/* Limits */
.kadi-pay-v4-limits {
    padding: 20px 22px !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.01)) !important;
    border: 1px solid rgba(255,255,255,.052) !important;
    box-shadow: none !important;
}

.kadi-pay-v4-limits-title {
    color: var(--kadi-final-text) !important;
    font-size: 15px !important;
    font-weight: 760 !important;
    letter-spacing: 3px !important;
}

.kadi-pay-v4-row {
    color: rgba(255,255,255,.44) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    letter-spacing: .2px !important;
}

.kadi-pay-v4-row strong {
    color: var(--kadi-final-text) !important;
    font-size: 18px !important;
    font-weight: 780 !important;
}

/* CTA — like selected mockup, rich but not neon */
.kadi-pay-v4-submit,
.kadi-pay-v4 button#kadi-pay-v4-submit {
    height: 62px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #d9ad44 0%, #bf862d 100%) !important;
    color: #111 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow:
        0 12px 28px rgba(216,170,63,.20),
        inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.kadi-pay-v4-submit:active,
.kadi-pay-v4 button#kadi-pay-v4-submit:active {
    transform: scale(.985);
    background: linear-gradient(180deg, #c99a38 0%, #a97627 100%) !important;
}

.kadi-pay-v4-help {
    color: rgba(255,255,255,.34) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}


/* KADI Pay v8 — closer to selected right-side design */
.kadi-pay-v4 {
    background:
        radial-gradient(circle at 50% -12%, rgba(230, 176, 45, .18), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(230, 176, 45, .10), transparent 38%),
        linear-gradient(180deg, #030303 0%, #050505 100%) !important;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)) !important;
}

.kadi-pay-v8-inner {
    max-width: 480px;
    margin: 0 auto;
}

.kadi-pay-v8-top {
    display: grid;
    grid-template-columns: 112px 1fr 74px;
    align-items: center;
    gap: 10px;
    margin-bottom: 46px;
}

.kadi-pay-v8-back,
.kadi-pay-v8-lang {
    height: 44px;
    border-radius: 20px;
    border: 1px solid rgba(226, 176, 57, .34);
    background: rgba(255,255,255,.018);
    color: rgba(255,255,255,.92);
    font-weight: 700;
    box-shadow: 0 0 18px rgba(226,176,57,.05);
}

.kadi-pay-v8-back {
    font-size: 15px;
}

.kadi-pay-v8-lang {
    font-size: 15px;
}

.kadi-pay-v8-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kadi-pay-v8-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f0c24d 0%, #d89622 100%);
    color: #0b0b0b;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(230,176,45,.18);
}

.kadi-pay-v8-name strong {
    display: block;
    color: #f7f3ea;
    font-size: 32px;
    line-height: .9;
    font-weight: 850;
    letter-spacing: .5px;
}

.kadi-pay-v8-name span {
    display: block;
    margin-top: 7px;
    color: #dca838;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.4px;
}

.kadi-pay-v8-title {
    margin: 0 0 28px;
    text-align: center;
    color: #f7f3ea;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 760;
    letter-spacing: -0.5px;
}

.kadi-pay-v8-card {
    padding: 28px 24px 26px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.012));
    border: 1px solid rgba(226,176,57,.20);
    box-shadow:
        0 24px 70px rgba(0,0,0,.52),
        0 0 44px rgba(226,176,57,.06);
}

.kadi-pay-v8-label {
    margin-bottom: 14px;
    color: rgba(247,243,234,.70);
    font-size: 16px;
    font-weight: 700;
}

.kadi-pay-v8-input-wrap {
    height: 76px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    border-radius: 20px;
    background: rgba(2,2,2,.62);
    border: 1.35px solid rgba(234,180,43,.78);
    box-shadow:
        0 0 22px rgba(234,180,43,.18),
        inset 0 0 0 1px rgba(255,255,255,.02);
}

#kadi-pay-v4-amount {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 34px !important;
    line-height: 76px;
    font-weight: 760 !important;
    letter-spacing: .1px;
    caret-color: #eab42b;
}

#kadi-pay-v4-amount::placeholder {
    color: rgba(255,255,255,.28);
    -webkit-text-fill-color: rgba(255,255,255,.28);
}

.kadi-pay-v8-currency {
    color: rgba(255,255,255,.60);
    font-size: 16px;
    font-weight: 800;
}

.kadi-pay-v8-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0 26px;
}

.kadi-pay-v8-chip {
    height: 48px;
    border-radius: 17px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.018);
    color: rgba(255,255,255,.88);
    font-size: 17px;
    font-weight: 720;
}

.kadi-pay-v8-chip.active {
    border-color: rgba(234,180,43,.88);
    color: #eab42b;
    background: rgba(234,180,43,.075);
    box-shadow: 0 0 22px rgba(234,180,43,.14);
}

.kadi-pay-v8-divider {
    height: 1px;
    background: rgba(234,180,43,.13);
    margin-bottom: 8px;
}

.kadi-pay-v8-row {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    border-bottom: 1px solid rgba(234,180,43,.10);
}

.kadi-pay-v8-row:last-child {
    border-bottom: 0;
}

.kadi-pay-v8-row-icon {
    color: #eab42b;
    font-size: 19px;
    font-weight: 800;
    text-align: center;
}

.kadi-pay-v8-row span {
    color: rgba(247,243,234,.72);
    font-size: 16px;
    font-weight: 500;
}

.kadi-pay-v8-row strong {
    color: #f7f3ea;
    font-size: 18px;
    font-weight: 780;
    white-space: nowrap;
}

.kadi-pay-v8-submit {
    width: 100%;
    height: 66px;
    margin-top: 28px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, #f0c24d 0%, #e0a11f 100%);
    color: #090909;
    font-size: 20px;
    font-weight: 820;
    box-shadow:
        0 0 30px rgba(234,180,43,.28),
        0 16px 34px rgba(234,180,43,.18),
        inset 0 1px 0 rgba(255,255,255,.24);
}

.kadi-pay-v8-submit:active {
    transform: scale(.985);
}

.kadi-pay-v8-error {
    min-height: 20px;
    margin-top: 12px;
    color: #ff6767;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.kadi-pay-v8-help {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    color: rgba(247,243,234,.62);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
}

.kadi-pay-v8-help-icon {
    color: #eab42b;
    font-size: 20px;
    line-height: 1.1;
}

@media (max-width: 380px) {
    .kadi-pay-v8-top {
        grid-template-columns: 98px 1fr 64px;
        margin-bottom: 36px;
    }

    .kadi-pay-v8-name strong {
        font-size: 27px;
    }

    .kadi-pay-v8-title {
        font-size: 29px;
    }

    .kadi-pay-v8-card {
        padding: 24px 18px;
    }

    #kadi-pay-v4-amount {
        font-size: 31px !important;
    }

    .kadi-pay-v8-chip {
        font-size: 15px;
    }

    .kadi-pay-v8-row strong {
        font-size: 16px;
    }
}


/* KADI Top-up Flow v9 — amount -> method -> one reserved card */
.quick-action[data-page="profile"] {
    display: none !important;
}

.quick-actions {
    grid-template-columns: repeat(3, 1fr) !important;
}

#kadi-pay-v4.kadi-flow-screen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    background:
        radial-gradient(circle at 50% -10%, rgba(235, 178, 35, .16), transparent 30%),
        radial-gradient(circle at 50% 105%, rgba(235, 178, 35, .10), transparent 36%),
        linear-gradient(180deg, #030303 0%, #050505 100%) !important;
    color: #f7f3ea !important;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(26px + env(safe-area-inset-bottom)) !important;
}

#kadi-pay-v4.kadi-flow-screen:not(.active) {
    display: none !important;
}

.kadi-flow-inner {
    max-width: 480px;
    margin: 0 auto;
}

.kadi-flow-top {
    display: grid;
    grid-template-columns: 112px 1fr 74px;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
}

.kadi-flow-back,
.kadi-flow-lang {
    height: 44px;
    border-radius: 20px;
    border: 1px solid rgba(236, 181, 45, .35);
    background: rgba(255,255,255,.018);
    color: rgba(255,255,255,.92);
    font-weight: 750;
    box-shadow: 0 0 18px rgba(236,181,45,.05);
}

.kadi-flow-back {
    font-size: 15px;
}

.kadi-flow-lang {
    font-size: 15px;
}

.kadi-flow-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kadi-flow-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f0c24d 0%, #d89622 100%);
    color: #0b0b0b;
    font-size: 25px;
    font-weight: 950;
    box-shadow: 0 0 20px rgba(236,181,45,.20);
}

.kadi-flow-name strong {
    display: block;
    color: #f7f3ea;
    font-size: 32px;
    line-height: .9;
    font-weight: 850;
}

.kadi-flow-name span {
    display: block;
    margin-top: 7px;
    color: #dca838;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 2.4px;
}

.kadi-flow-title {
    margin: 0 0 26px;
    text-align: center;
    color: #f7f3ea;
    font-size: 33px;
    line-height: 1.05;
    font-weight: 760;
    letter-spacing: -0.6px;
}

.kadi-flow-subtitle {
    margin: -14px 0 24px;
    color: rgba(247,243,234,.52);
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

.kadi-flow-card {
    padding: 26px 24px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.012));
    border: 1px solid rgba(236,181,45,.20);
    box-shadow:
        0 24px 70px rgba(0,0,0,.52),
        0 0 44px rgba(236,181,45,.06);
}

.kadi-flow-label {
    margin-bottom: 14px;
    color: rgba(247,243,234,.70);
    font-size: 16px;
    font-weight: 750;
}

.kadi-flow-input-wrap {
    height: 76px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    border-radius: 20px;
    background: rgba(2,2,2,.62);
    border: 1.35px solid rgba(234,180,43,.78);
    box-shadow:
        0 0 22px rgba(234,180,43,.18),
        inset 0 0 0 1px rgba(255,255,255,.02);
}

#kadi-flow-amount {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 34px !important;
    line-height: 76px;
    font-weight: 780 !important;
    caret-color: #eab42b;
}

#kadi-flow-amount::placeholder {
    color: rgba(255,255,255,.30);
    -webkit-text-fill-color: rgba(255,255,255,.30);
}

.kadi-flow-currency {
    color: rgba(255,255,255,.62);
    font-size: 16px;
    font-weight: 850;
}

.kadi-flow-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0 6px;
}

.kadi-flow-chip {
    height: 48px;
    border-radius: 17px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.018);
    color: rgba(255,255,255,.88);
    font-size: 17px;
    font-weight: 750;
}

.kadi-flow-chip.active {
    border-color: rgba(234,180,43,.88);
    color: #eab42b;
    background: rgba(234,180,43,.075);
    box-shadow: 0 0 22px rgba(234,180,43,.14);
}

.kadi-flow-submit {
    width: 100%;
    height: 66px;
    margin-top: 26px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, #f0c24d 0%, #e0a11f 100%);
    color: #090909;
    font-size: 20px;
    font-weight: 850;
    box-shadow:
        0 0 30px rgba(234,180,43,.28),
        0 16px 34px rgba(234,180,43,.18),
        inset 0 1px 0 rgba(255,255,255,.24);
}

.kadi-flow-submit:active {
    transform: scale(.985);
}

.kadi-flow-error {
    min-height: 20px;
    margin-top: 12px;
    color: #ff6767;
    text-align: center;
    font-size: 13px;
    font-weight: 750;
}

/* Method screen */
.kadi-method-amount {
    height: 58px;
    margin-bottom: 22px;
    padding: 0 22px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
}

.kadi-method-amount span {
    color: rgba(247,243,234,.44);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.kadi-method-amount strong {
    color: #f7f3ea;
    font-size: 25px;
    font-weight: 850;
}

.kadi-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.kadi-method-card {
    height: 132px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.70);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 850;
}

.kadi-method-card.active {
    border: 2px solid #eab42b;
    color: #eab42b;
    box-shadow: 0 0 24px rgba(234,180,43,.14);
}

.kadi-method-card.disabled {
    opacity: .38;
}

.kadi-method-card.full {
    grid-column: 1 / -1;
}

.kadi-method-icon {
    width: 72px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 24px;
}

/* Payment screen */
.kadi-payment-timer {
    margin-bottom: 28px;
    padding: 24px 18px;
    border-radius: 30px;
    background: linear-gradient(180deg, #f0c24d 0%, #e0a11f 100%);
    color: #111;
    text-align: center;
    box-shadow: 0 0 34px rgba(234,180,43,.25);
}

.kadi-payment-timer span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 4px;
    opacity: .65;
}

.kadi-payment-timer strong {
    display: block;
    font-size: 43px;
    font-weight: 950;
}

.kadi-bank-card {
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #6c21b7 0%, #961ab8 100%);
    box-shadow: 0 20px 50px rgba(119,33,183,.25);
}

.kadi-bank-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.kadi-bank-card-system {
    color: #fff;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.kadi-bank-card-copy {
    height: 40px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

.kadi-bank-number {
    margin-bottom: 28px;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 5px;
    word-spacing: 8px;
}

.kadi-bank-holder {
    color: rgba(255,255,255,.72);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.kadi-payment-amount-card {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(236,181,45,.14);
}

.kadi-payment-amount-label {
    margin-bottom: 10px;
    color: rgba(247,243,234,.38);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 3px;
}

.kadi-payment-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kadi-payment-amount-row strong {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.kadi-payment-copy-btn {
    height: 43px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

.kadi-rules {
    padding: 22px 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
}

.kadi-rule-title-ok {
    color: #45df7a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.kadi-rule-title-bad {
    color: #ff5555;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 18px 0 12px;
}

.kadi-rule {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
    color: rgba(255,255,255,.82);
    font-size: 15px;
    font-weight: 800;
}

.kadi-rule.ok b {
    color: #45df7a;
}

.kadi-rule.bad b {
    color: #ff5555;
}

.kadi-cancel-payment {
    width: 100%;
    height: 48px;
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,90,90,.25);
    background: rgba(255,90,90,.06);
    color: #ff7777;
    font-weight: 850;
}

@media (max-width: 380px) {
    .kadi-flow-top {
        grid-template-columns: 98px 1fr 64px;
    }

    .kadi-flow-name strong {
        font-size: 27px;
    }

    .kadi-flow-title {
        font-size: 29px;
    }

    .kadi-flow-card {
        padding: 22px 18px;
    }

    #kadi-flow-amount {
        font-size: 31px !important;
    }

    .kadi-payment-timer strong {
        font-size: 38px;
    }

    .kadi-bank-number {
        font-size: 20px;
        letter-spacing: 4px;
    }
}


/* KADI Flow v10 — cleaner premium polish */
#kadi-pay-v4.kadi-flow-screen {
    background:
        radial-gradient(circle at 50% -8%, rgba(214, 160, 44, .13), transparent 30%),
        radial-gradient(circle at 50% 105%, rgba(171, 118, 30, .08), transparent 34%),
        linear-gradient(180deg, #050505 0%, #020202 100%) !important;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom)) !important;
}

.kadi-flow-inner {
    max-width: 440px !important;
}

.kadi-flow-top {
    grid-template-columns: 104px 1fr 64px !important;
    gap: 9px !important;
    margin-bottom: 30px !important;
}

.kadi-flow-back,
.kadi-flow-lang {
    height: 40px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(205, 154, 49, .26) !important;
    background: rgba(255,255,255,.018) !important;
    color: rgba(255,255,255,.88) !important;
    box-shadow: none !important;
}

.kadi-flow-back {
    font-size: 14px !important;
}

.kadi-flow-lang {
    font-size: 14px !important;
}

.kadi-flow-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    background: linear-gradient(180deg, #d8aa44 0%, #b87f29 100%) !important;
    font-size: 23px !important;
    box-shadow: 0 0 14px rgba(216,170,68,.13) !important;
}

.kadi-flow-name strong {
    font-size: 30px !important;
    letter-spacing: .2px !important;
}

.kadi-flow-name span {
    margin-top: 6px !important;
    color: rgba(216,170,68,.78) !important;
    font-size: 8.5px !important;
    letter-spacing: 2.2px !important;
}

.kadi-flow-title {
    margin-bottom: 22px !important;
    font-size: 30px !important;
    line-height: 1.08 !important;
    font-weight: 780 !important;
    letter-spacing: -0.5px !important;
}

.kadi-flow-subtitle {
    margin-top: -12px !important;
    margin-bottom: 22px !important;
    color: rgba(247,243,234,.45) !important;
    font-size: 13px !important;
}

.kadi-method-amount {
    height: 54px !important;
    margin-bottom: 20px !important;
    padding: 0 20px !important;
    border-radius: 21px !important;
    background: rgba(255,255,255,.018) !important;
    border: 1px solid rgba(255,255,255,.055) !important;
}

.kadi-method-amount span {
    font-size: 11px !important;
    letter-spacing: 3px !important;
    color: rgba(247,243,234,.38) !important;
}

.kadi-method-amount strong {
    font-size: 25px !important;
    color: #f7f3ea !important;
}

.kadi-method-grid {
    gap: 12px !important;
}

.kadi-method-card {
    height: 118px !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.018) !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    box-shadow: none !important;
}

.kadi-method-card.active {
    border: 1.5px solid rgba(216,170,68,.72) !important;
    background: rgba(216,170,68,.035) !important;
    box-shadow: 0 0 22px rgba(216,170,68,.10) !important;
}

.kadi-method-icon {
    width: 68px !important;
    height: 44px !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.92) !important;
    font-size: 23px !important;
}

.kadi-flow-submit,
.kadi-pay-v4-submit,
.kadi-pay-v4 button#kadi-pay-v4-submit,
.kadi-flow-v10 .kadi-flow-submit {
    height: 62px !important;
    border-radius: 21px !important;
    background: linear-gradient(180deg, #d8aa44 0%, #b98028 100%) !important;
    color: #090909 !important;
    font-size: 19px !important;
    font-weight: 820 !important;
    box-shadow:
        0 12px 26px rgba(184,128,40,.16),
        0 0 22px rgba(216,170,68,.12),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

/* Payment screen */
.kadi-payment-timer {
    margin-bottom: 22px !important;
    padding: 20px 18px !important;
    border-radius: 26px !important;
    background: linear-gradient(180deg, #d8aa44 0%, #ba842b 100%) !important;
    box-shadow:
        0 14px 32px rgba(184,128,40,.16),
        0 0 24px rgba(216,170,68,.12) !important;
}

.kadi-payment-timer span {
    font-size: 11px !important;
    letter-spacing: 3.4px !important;
    opacity: .68 !important;
}

.kadi-payment-timer strong {
    font-size: 40px !important;
    line-height: 1.05 !important;
}

.kadi-bank-card {
    min-height: 176px !important;
    margin-bottom: 18px !important;
    padding: 22px !important;
    border-radius: 27px !important;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.12), transparent 24%),
        linear-gradient(135deg, #5b22a4 0%, #8e19b1 58%, #a318aa 100%) !important;
    box-shadow:
        0 18px 44px rgba(99,33,164,.22),
        inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.kadi-bank-card-top {
    margin-bottom: 30px !important;
}

.kadi-bank-card-system {
    font-size: 20px !important;
    letter-spacing: 3.4px !important;
}

.kadi-bank-card-copy {
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
}

.kadi-bank-number {
    margin-bottom: 26px !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.45 !important;
    font-weight: 720 !important;
    letter-spacing: 3.2px !important;
    word-spacing: 4px !important;
    font-variant-numeric: tabular-nums !important;
    white-space: normal !important;
}

.kadi-bank-holder {
    font-size: 14px !important;
    letter-spacing: 2.5px !important;
    color: rgba(255,255,255,.70) !important;
}

.kadi-payment-amount-card {
    margin-bottom: 16px !important;
    padding: 18px 20px !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.018) !important;
    border: 1px solid rgba(216,170,68,.12) !important;
    box-shadow: none !important;
}

.kadi-payment-amount-label {
    margin-bottom: 11px !important;
    font-size: 11px !important;
    letter-spacing: 3.2px !important;
    color: rgba(247,243,234,.36) !important;
}

.kadi-payment-amount-row strong {
    font-size: 31px !important;
    line-height: 1.1 !important;
    color: #f7f3ea !important;
}

.kadi-payment-copy-btn {
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    color: rgba(255,255,255,.90) !important;
    font-size: 13px !important;
}

.kadi-rules {
    padding: 21px 19px !important;
    border-radius: 25px !important;
    background: rgba(255,255,255,.018) !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    box-shadow: none !important;
}

.kadi-rule-title-ok,
.kadi-rule-title-bad {
    font-size: 11px !important;
    letter-spacing: 3.2px !important;
}

.kadi-rule {
    margin: 13px 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    color: rgba(247,243,234,.78) !important;
}

.kadi-cancel-payment {
    height: 48px !important;
    margin-top: 17px !important;
    border-radius: 18px !important;
    background: rgba(255,70,70,.035) !important;
    border: 1px solid rgba(255,90,90,.20) !important;
    color: rgba(255,120,120,.88) !important;
    font-size: 14px !important;
}

/* Amount input screen */
.kadi-flow-card {
    padding: 24px 22px !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.030), rgba(255,255,255,.010)) !important;
    border: 1px solid rgba(216,170,68,.16) !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.46) !important;
}

.kadi-flow-input-wrap {
    height: 72px !important;
    border-radius: 19px !important;
    border-color: rgba(216,170,68,.68) !important;
    box-shadow: 0 0 17px rgba(216,170,68,.10) !important;
}

#kadi-flow-amount {
    font-size: 32px !important;
}

.kadi-flow-chip {
    height: 45px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.020) !important;
}

.kadi-flow-chip.active {
    border-color: rgba(216,170,68,.72) !important;
    color: #ddb457 !important;
    box-shadow: 0 0 18px rgba(216,170,68,.10) !important;
}

@media (max-width: 380px) {
    .kadi-flow-top {
        grid-template-columns: 92px 1fr 58px !important;
    }

    .kadi-flow-name strong {
        font-size: 27px !important;
    }

    .kadi-flow-name span {
        font-size: 8px !important;
        letter-spacing: 1.9px !important;
    }

    .kadi-flow-title {
        font-size: 27px !important;
    }

    .kadi-bank-number {
        font-size: 18px !important;
        letter-spacing: 2.6px !important;
        word-spacing: 3px !important;
    }

    .kadi-payment-amount-row strong {
        font-size: 28px !important;
    }
}


/* =========================================================
   KADI TOPUP FLOW v11 — clean premium UI, not BUYTIX copy
   ========================================================= */

/* Hide duplicated small top-up shortcut on home */
.quick-actions > .quick-action:first-child,
.quick-actions > button.quick-action:first-child {
    display: none !important;
}

.quick-actions {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Fullscreen overlay */
#kadi-pay-v11 {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at 50% -12%, rgba(189, 138, 42, .17), transparent 34%),
        radial-gradient(circle at 10% 52%, rgba(189, 138, 42, .055), transparent 26%),
        radial-gradient(circle at 92% 85%, rgba(189, 138, 42, .09), transparent 28%),
        linear-gradient(180deg, #050505 0%, #020202 100%);
    color: #f5f0e7;
    font-family: inherit;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(26px + env(safe-area-inset-bottom));
}

#kadi-pay-v11.active {
    display: block;
}

.k11-shell {
    width: min(100%, 440px);
    margin: 0 auto;
}

/* Header */
.k11-header {
    display: grid;
    grid-template-columns: 94px 1fr 62px;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.k11-back,
.k11-lang {
    height: 42px;
    border: 1px solid rgba(201, 150, 51, .30);
    border-radius: 18px;
    background: rgba(255,255,255,.018);
    color: rgba(255,255,255,.90);
    font-size: 14px;
    font-weight: 760;
    letter-spacing: -.2px;
    box-shadow: none;
}

.k11-back {
    text-align: center;
}

.k11-lang {
    font-weight: 820;
}

.k11-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.k11-logo {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #d7aa48 0%, #a97422 100%);
    color: #060606;
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 0 18px rgba(201,150,51,.16);
    flex: 0 0 auto;
}

.k11-wordmark {
    min-width: 0;
}

.k11-wordmark strong {
    display: block;
    color: #fffaf0;
    font-size: 31px;
    line-height: .86;
    font-weight: 890;
    letter-spacing: .4px;
}

.k11-wordmark span {
    display: block;
    margin-top: 7px;
    color: rgba(201,150,51,.86);
    font-size: 8.5px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: 2.05px;
}

/* General */
.k11-kicker {
    margin: 0 0 11px;
    color: #c99633;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.k11-title {
    margin: 0;
    color: #fffaf0;
    font-size: 33px;
    line-height: 1.08;
    font-weight: 820;
    letter-spacing: -1px;
}

.k11-muted {
    margin: 13px 0 0;
    color: rgba(245,240,231,.54);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 520;
}

.k11-card {
    margin-top: 26px;
    padding: 22px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
    border: 1px solid rgba(255,255,255,.065);
    box-shadow:
        0 24px 70px rgba(0,0,0,.50),
        inset 0 1px 0 rgba(255,255,255,.035);
}

/* Amount screen */
.k11-input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    color: rgba(245,240,231,.62);
    font-size: 14px;
    font-weight: 750;
}

.k11-balance {
    color: #4cd975;
    font-size: 13px;
    font-weight: 850;
}

.k11-input-wrap {
    height: 76px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    border-radius: 22px;
    background: rgba(0,0,0,.48);
    border: 1.25px solid rgba(201,150,51,.68);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.018) inset,
        0 0 22px rgba(201,150,51,.09);
}

#k11-amount {
    min-width: 0;
    width: 100%;
    height: 74px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fffaf0 !important;
    -webkit-text-fill-color: #fffaf0 !important;
    font-size: 36px !important;
    font-weight: 820 !important;
    letter-spacing: -.4px;
    caret-color: #c99633;
}

#k11-amount::placeholder {
    color: rgba(245,240,231,.26);
    -webkit-text-fill-color: rgba(245,240,231,.26);
}

.k11-currency {
    color: #d4a640;
    font-size: 18px;
    font-weight: 880;
}

.k11-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin-top: 18px;
}

.k11-chip {
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.085);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.020));
    color: rgba(255,255,255,.82);
    font-size: 16px;
    font-weight: 780;
}

.k11-chip.active {
    border-color: rgba(201,150,51,.68);
    color: #d6aa48;
    background: rgba(201,150,51,.08);
    box-shadow: 0 0 18px rgba(201,150,51,.11);
}

.k11-limit-box {
    margin-top: 20px;
    padding: 17px 18px;
    border-radius: 21px;
    background: rgba(201,150,51,.055);
    border: 1px solid rgba(201,150,51,.10);
}

.k11-limit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 14px;
}

.k11-limit-row span {
    color: rgba(245,240,231,.54);
    font-size: 15px;
    font-weight: 720;
}

.k11-limit-row strong {
    color: #fffaf0;
    font-size: 16px;
    font-weight: 820;
    white-space: nowrap;
}

.k11-primary {
    width: 100%;
    height: 62px;
    margin-top: 22px;
    border: 0;
    border-radius: 21px;
    background: linear-gradient(180deg, #d6aa48 0%, #b37a24 100%);
    color: #070707;
    font-size: 19px;
    font-weight: 860;
    box-shadow:
        0 14px 34px rgba(179,122,36,.17),
        0 0 24px rgba(201,150,51,.13),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.k11-primary:active {
    transform: scale(.985);
}

.k11-error {
    min-height: 18px;
    margin-top: 12px;
    color: #ff7474;
    font-size: 13px;
    font-weight: 720;
    text-align: center;
}

/* Method screen */
.k11-summary-pill {
    height: 60px;
    margin-top: 24px;
    padding: 0 20px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.018);
    border: 1px solid rgba(255,255,255,.060);
}

.k11-summary-pill span {
    color: rgba(245,240,231,.40);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3.2px;
    text-transform: uppercase;
}

.k11-summary-pill strong {
    color: #fffaf0;
    font-size: 25px;
    font-weight: 870;
    white-space: nowrap;
}

.k11-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin-top: 20px;
}

.k11-method {
    min-height: 126px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 24px;
    background: rgba(255,255,255,.016);
    color: rgba(255,255,255,.56);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px 12px;
}

.k11-method.active {
    border: 1.5px solid rgba(201,150,51,.75);
    background: rgba(201,150,51,.040);
    color: #d6aa48;
    box-shadow: 0 0 22px rgba(201,150,51,.10);
}

.k11-method.disabled {
    opacity: .40;
}

.k11-method.wide {
    grid-column: 1 / -1;
    min-height: 105px;
}

.k11-method-icon {
    width: 74px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: rgba(255,255,255,.92);
    color: #111;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 900;
}

.k11-method-title {
    font-size: 16px;
    font-weight: 850;
}

/* Payment screen */
.k11-timer {
    margin-top: 8px;
    padding: 19px 18px 20px;
    border-radius: 27px;
    background: linear-gradient(180deg, #d6aa48 0%, #b37a24 100%);
    color: #080808;
    text-align: center;
    box-shadow:
        0 14px 34px rgba(179,122,36,.18),
        0 0 24px rgba(201,150,51,.13);
}

.k11-timer span {
    display: block;
    margin-bottom: 8px;
    opacity: .62;
    font-size: 11px;
    font-weight: 930;
    letter-spacing: 3.4px;
    text-transform: uppercase;
}

.k11-timer strong {
    display: block;
    font-size: 41px;
    line-height: 1;
    font-weight: 930;
    letter-spacing: -1px;
}

.k11-pay-card {
    margin-top: 22px;
    padding: 24px;
    min-height: 190px;
    border-radius: 29px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 24%, rgba(201,150,51,.18), transparent 26%),
        linear-gradient(135deg, #171717 0%, #090909 72%);
    border: 1px solid rgba(201,150,51,.24);
    box-shadow:
        0 24px 60px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.035);
}

.k11-pay-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
    transform: translateX(-80%);
    opacity: .45;
}

.k11-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.k11-card-system {
    color: #d6aa48;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.k11-copy-small {
    height: 40px;
    padding: 0 15px;
    border-radius: 15px;
    border: 1px solid rgba(201,150,51,.28);
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 820;
}

.k11-card-number {
    position: relative;
    color: #fffaf0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 3.4px;
    word-spacing: 4px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 30px;
}

.k11-card-holder {
    position: relative;
    color: rgba(245,240,231,.58);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.k11-amount-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.018);
    border: 1px solid rgba(255,255,255,.060);
}

.k11-amount-title {
    margin-bottom: 10px;
    color: rgba(245,240,231,.38);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3.4px;
    text-transform: uppercase;
}

.k11-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.k11-amount-row strong {
    color: #fffaf0;
    font-size: 33px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.8px;
}

.k11-rules {
    margin-top: 18px;
    padding: 22px 20px;
    border-radius: 25px;
    background: rgba(255,255,255,.018);
    border: 1px solid rgba(255,255,255,.060);
}

.k11-rules-title-ok,
.k11-rules-title-bad {
    font-size: 11px;
    font-weight: 920;
    letter-spacing: 3.2px;
    text-transform: uppercase;
}

.k11-rules-title-ok {
    color: #45df7a;
}

.k11-rules-title-bad {
    color: #ff6767;
    margin-top: 20px;
}

.k11-rule {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    color: rgba(245,240,231,.78);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 760;
}

.k11-rule b {
    font-size: 22px;
    line-height: 1;
}

.k11-rule.ok b {
    color: #45df7a;
}

.k11-rule.bad b {
    color: #ff6767;
}

.k11-cancel {
    width: 100%;
    height: 50px;
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,90,90,.20);
    background: rgba(255,80,80,.035);
    color: rgba(255,120,120,.88);
    font-size: 14px;
    font-weight: 820;
}

@media (max-width: 380px) {
    #kadi-pay-v11 {
        padding-left: 14px;
        padding-right: 14px;
    }

    .k11-header {
        grid-template-columns: 88px 1fr 58px;
        gap: 8px;
    }

    .k11-back,
    .k11-lang {
        height: 39px;
        font-size: 13px;
    }

    .k11-logo {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .k11-wordmark strong {
        font-size: 27px;
    }

    .k11-wordmark span {
        font-size: 7.5px;
        letter-spacing: 1.7px;
    }

    .k11-title {
        font-size: 29px;
    }

    .k11-card {
        padding: 20px 18px;
    }

    #k11-amount {
        font-size: 32px !important;
    }

    .k11-summary-pill strong {
        font-size: 22px;
    }

    .k11-method {
        min-height: 116px;
    }

    .k11-card-number {
        font-size: 19px;
        letter-spacing: 2.5px;
        word-spacing: 3px;
    }

    .k11-amount-row strong {
        font-size: 29px;
    }
}


/* =========================================================
   KADI TOPUP FLOW v12 — compact clean UI
   ========================================================= */
body.k12-lock { overflow: hidden !important; }

.quick-actions > .quick-action:first-child,
.quick-actions > button.quick-action:first-child {
    display: none !important;
}
.quick-actions { grid-template-columns: repeat(3, 1fr) !important; }

#kadi-pay-v12 {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 50% -12%, rgba(188, 143, 58, .12), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(188, 143, 58, .06), transparent 26%),
        linear-gradient(180deg, #050505 0%, #020202 100%);
    color: #f4efe5;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#kadi-pay-v12.active { display: block; }

.k12-shell { width: min(100%, 420px); margin: 0 auto; }
.k12-header {
    display: grid;
    grid-template-columns: 86px 1fr 58px;
    gap: 10px;
    align-items: center;
    margin-bottom: 26px;
}
.k12-pill {
    height: 38px;
    border: 1px solid rgba(190, 147, 61, .28);
    border-radius: 17px;
    background: rgba(255,255,255,.018);
    color: rgba(244,239,229,.90);
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.2px;
}
.k12-lang { font-weight: 750; }
.k12-brand { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; }
.k12-logo {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(180deg, #d0a550 0%, #a8752d 100%);
    color: #060606;
    font-size: 22px; font-weight: 850;
    box-shadow: 0 0 14px rgba(190,147,61,.12);
    flex: 0 0 auto;
}
.k12-brand-title { color: #fffaf1; font-size: 28px; line-height: .9; font-weight: 750; letter-spacing: .3px; }
.k12-brand-sub { margin-top: 6px; color: rgba(203,161,80,.85); font-size: 8px; font-weight: 700; letter-spacing: 1.8px; }

.k12-headline { margin: 0 0 20px; }
.k12-headline.center { text-align: center; }
.k12-headline.compact { margin-bottom: 18px; }
.k12-eyebrow { margin-bottom: 8px; color: #c79c45; font-size: 11px; font-weight: 750; letter-spacing: 3.2px; }
.k12-headline h1 {
    margin: 0;
    color: #fffaf1;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.7px;
}
.k12-headline p {
    margin: 10px 0 0;
    color: rgba(244,239,229,.52);
    font-size: 14px;
    line-height: 1.42;
    font-weight: 480;
}

.k12-panel {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.010));
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 18px 52px rgba(0,0,0,.42);
}
.k12-field-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.k12-field-top span { color: rgba(244,239,229,.58); font-size: 13px; font-weight: 650; }
.k12-field-top b { color: #55d77b; font-size: 12.5px; font-weight: 750; }
.k12-input-box {
    height: 64px;
    border-radius: 18px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,.44);
    border: 1px solid rgba(198,154,67,.58);
    box-shadow: 0 0 18px rgba(198,154,67,.07);
}
#k12-amount {
    width: 100%; min-width: 0; height: 62px;
    border: 0; outline: 0; background: transparent;
    color: #fffaf1 !important; -webkit-text-fill-color: #fffaf1 !important;
    font-size: 30px !important;
    font-weight: 650 !important;
    letter-spacing: -.2px;
    caret-color: #c69a43;
}
#k12-amount::placeholder { color: rgba(244,239,229,.28); -webkit-text-fill-color: rgba(244,239,229,.28); }
.k12-input-box span { color: #cfa44e; font-size: 15px; font-weight: 750; }
.k12-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 14px; }
.k12-chips button {
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.075);
    background: rgba(255,255,255,.025);
    color: rgba(244,239,229,.78);
    font-size: 14px;
    font-weight: 650;
}
.k12-chips button.active { border-color: rgba(198,154,67,.58); color: #d0a550; background: rgba(198,154,67,.055); }
.k12-limits {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(198,154,67,.045);
    border: 1px solid rgba(198,154,67,.09);
}
.k12-limits div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.k12-limits span { color: rgba(244,239,229,.53); font-size: 13.5px; font-weight: 560; }
.k12-limits b { color: #fffaf1; font-size: 14px; font-weight: 670; white-space: nowrap; }
.k12-main-btn {
    width: 100%; height: 54px;
    margin-top: 18px;
    border: 0; border-radius: 17px;
    background: linear-gradient(180deg, #d0a550 0%, #a8752d 100%);
    color: #070707;
    font-size: 17px;
    font-weight: 720;
    box-shadow: 0 12px 28px rgba(168,117,45,.16), 0 0 20px rgba(198,154,67,.10);
}
.k12-main-btn:disabled { opacity: .7; }
.k12-error { min-height: 18px; margin-top: 10px; color: #ff7777; text-align: center; font-size: 12.5px; font-weight: 600; }

.k12-summary {
    height: 54px;
    padding: 0 18px;
    border-radius: 19px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(255,255,255,.018);
    border: 1px solid rgba(255,255,255,.055);
}
.k12-summary span { color: rgba(244,239,229,.42); font-size: 12px; font-weight: 650; }
.k12-summary b { color: #fffaf1; font-size: 21px; font-weight: 680; white-space: nowrap; }
.k12-method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.k12-method {
    min-height: 104px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.065);
    background: rgba(255,255,255,.014);
    color: rgba(244,239,229,.72);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 12px;
}
.k12-method.active { border-color: rgba(198,154,67,.62); background: rgba(198,154,67,.038); color: #d0a550; }
.k12-method.disabled { opacity: .45; }
.k12-method.wide { grid-column: 1 / -1; min-height: 86px; }
.k12-method-icon {
    width: 58px; height: 42px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(244,239,229,.92);
    margin-bottom: 10px;
}
.k12-method-icon svg { width: 38px; height: 28px; fill: none; stroke: #171717; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.k12-method b { font-size: 14.5px; font-weight: 680; }

.k12-timer {
    height: 62px;
    margin-bottom: 16px;
    padding: 0 18px;
    border-radius: 21px;
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, #d0a550 0%, #a8752d 100%);
    color: #080808;
    box-shadow: 0 12px 28px rgba(168,117,45,.15);
}
.k12-timer span { opacity: .67; font-size: 12px; font-weight: 750; }
.k12-timer b { font-size: 29px; font-weight: 760; letter-spacing: -.6px; }
.k12-bank-card {
    padding: 20px;
    min-height: 166px;
    border-radius: 24px;
    background: linear-gradient(135deg, #191919 0%, #080808 72%);
    border: 1px solid rgba(198,154,67,.22);
    box-shadow: 0 18px 50px rgba(0,0,0,.42);
}
.k12-bank-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.k12-bank-top span { color: #d0a550; font-size: 20px; font-weight: 740; letter-spacing: 3px; }
.k12-bank-top button,
.k12-pay-amount button {
    height: 36px;
    padding: 0 13px;
    border-radius: 13px;
    border: 1px solid rgba(198,154,67,.24);
    background: rgba(255,255,255,.025);
    color: rgba(244,239,229,.86);
    font-size: 12.5px;
    font-weight: 650;
}
.k12-card-number {
    color: #fffaf1;
    font-size: clamp(18px, 4.65vw, 21px);
    line-height: 1.32;
    font-weight: 650;
    letter-spacing: 2.2px;
    word-spacing: 3px;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    margin-bottom: 26px;
}
.k12-holder { color: rgba(244,239,229,.54); font-size: 12.5px; font-weight: 700; letter-spacing: 2.7px; }
.k12-pay-amount {
    margin-top: 14px;
    padding: 16px;
    border-radius: 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: rgba(255,255,255,.016);
    border: 1px solid rgba(255,255,255,.055);
}
.k12-pay-amount span { display: block; margin-bottom: 7px; color: rgba(244,239,229,.40); font-size: 11.5px; font-weight: 650; }
.k12-pay-amount b { color: #fffaf1; font-size: 25px; font-weight: 700; letter-spacing: -.4px; }
.k12-rules {
    margin-top: 14px;
    padding: 17px;
    border-radius: 21px;
    background: rgba(255,255,255,.014);
    border: 1px solid rgba(255,255,255,.055);
}
.k12-rules .ok-title, .k12-rules .bad-title { font-size: 11px; font-weight: 750; letter-spacing: 2.8px; }
.k12-rules .ok-title { color: #4ade80; }
.k12-rules .bad-title { color: #fb6f6f; margin-top: 15px; }
.k12-rules p { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; margin: 11px 0 0; color: rgba(244,239,229,.76); font-size: 13.5px; line-height: 1.32; font-weight: 590; }
.k12-rules p b { font-size: 19px; }
.k12-rules p.ok b { color: #4ade80; }
.k12-rules p.bad b { color: #fb6f6f; }
.k12-cancel {
    width: 100%; height: 46px; margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,95,95,.20);
    background: rgba(255,65,65,.032);
    color: rgba(255,120,120,.84);
    font-size: 13.5px; font-weight: 650;
}

@media (max-width: 380px) {
    #kadi-pay-v12 { padding-left: 14px; padding-right: 14px; }
    .k12-header { grid-template-columns: 80px 1fr 54px; gap: 8px; }
    .k12-pill { height: 36px; font-size: 12.5px; }
    .k12-logo { width: 33px; height: 33px; font-size: 20px; }
    .k12-brand-title { font-size: 24px; }
    .k12-brand-sub { font-size: 7px; letter-spacing: 1.4px; }
    .k12-headline h1 { font-size: 25px; }
    #k12-amount { font-size: 27px !important; }
    .k12-panel { padding: 16px; }
    .k12-summary b { font-size: 19px; }
    .k12-method { min-height: 96px; }
    .k12-bank-card { padding: 18px; }
    .k12-card-number { letter-spacing: 1.6px; word-spacing: 2px; }
    .k12-pay-amount b { font-size: 22px; }
}


/* KADI v12.1 small polish: safer top spacing */
#kadi-pay-v12 {
    padding-top: calc(28px + env(safe-area-inset-top)) !important;
}

.k12-header {
    margin-top: 4px !important;
    margin-bottom: 28px !important;
}

.k12-title {
    font-size: 31px !important;
    line-height: 1.12 !important;
}

.k12-card-number {
    font-size: 21px !important;
    letter-spacing: 3px !important;
}

@media (max-width: 380px) {
    .k12-title {
        font-size: 28px !important;
    }

    .k12-card-number {
        font-size: 19px !important;
        letter-spacing: 2.4px !important;
    }
}
