:root {
    --bg-top-start: #082c3c;
    --bg-top-end: #04141c;
    --bg-bottom: #0f0f0f;
    --color-green: #7bd448;
    --color-text-main: #ffffff;
    --color-text-secondary: #8f9496;
    --panel-bg: #1c1c1e;
    --card-bg-start: #235c82;
    --card-bg-end: #092c4b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbars for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-bottom);
    color: var(--color-text-main);
    overflow-x: hidden;
    user-select: none;
    overscroll-behavior: none;
    touch-action: pan-y;
}

/* Desktop Stub */
.desktop-stub {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.stub-content {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
}

.stub-content svg {
    width: 64px;
    height: 64px;
    color: var(--color-green);
    margin-bottom: 20px;
}

.stub-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.stub-content p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-bottom);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Top Section with Solid Background transitioning to black */
.top-section {
    background-color: var(--bg-top-start);
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 230px, var(--bg-bottom) 230px, var(--bg-bottom) 100%);
    background-repeat: no-repeat;
    background-position: 0 0;
    transition: background-position 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-top: 20px;
    padding-bottom: 20px;
}
.top-section.dragging {
    transition: none;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 15px;
    z-index: 10;
    position: relative;
}

/* Pull to Refresh */
.pull-indicator {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(var(--pull-translate-y, 0px)) scale(0.5);
    width: 32px;
    height: 32px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.pull-indicator.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(var(--pull-translate-y, 0px)) scale(1);
}
.pull-indicator.dragging {
    transition: none;
}
.spinner {
    animation: rotate 2s linear infinite;
    width: 100%;
    height: 100%;
}
.spinner .path {
    stroke: rgba(255, 255, 255, 0.7);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.pull-element {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pull-element.dragging {
    transition: none;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #b5a0fb;
    color: #311484;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.account-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

.notification {
    position: relative;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f24250;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-top-start);
}

.support {
    cursor: pointer;
}

/* Card Carousel */
.card-carousel {
    display: flex;
    gap: 12px;
    padding: 0 5%;
    overflow-x: auto;
    position: relative;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.card-carousel::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 90%;
    height: 190px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.universal-card {
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 163, 255, 0.2));
}

.partial-card {
    min-width: 20px;
    background: #e0e0e0; /* Edge of next white card */
    border-radius: 12px 0 0 12px;
}

/* Unused card inner styles removed as they are now replaced by the card-image */

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #5d6b71;
}

.dot.active {
    background-color: #aeb2b5;
}

/* Balance Section */
.balance-section {
    padding: 20px 20px 0;
}

.balance-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.balance-label {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.balance-amount {
    font-size: 22px;
    font-weight: 600;
}

.divider-dashed {
    border-top: 1px dashed #34383a;
    margin-bottom: 15px;
}

.balance-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.text-white {
    color: var(--color-text-main);
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 25px 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-green);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(123, 212, 72, 0.2);
}

.action-item span {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* History Section */
.history-section {
    background-color: #1f1f1f;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    flex-grow: 1;
}

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

.history-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.history-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn {
    background-color: #2d353b;
    color: #46a2d9;
}

.chart-btn {
    background-color: #35294a;
    color: #9d7bed;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3b3b3b;
    color: #7e7e7e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details {
    flex-grow: 1;
}

.item-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.item-time {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.item-amount {
    font-size: 15px;
    font-weight: 500;
}

.text-green {
    color: var(--color-green);
}

/* History More Button */
.history-more-btn {
    display: flex;
    justify-content: center;
    padding: 15px 0 25px;
}

.history-more-btn button {
    background: #1a1a1c;
    border: 1.5px solid var(--color-green);
    color: var(--color-green);
    border-radius: 18px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Common Block Box */
.block-box {
    background-color: var(--panel-bg);
    border-radius: 20px;
    padding: 20px;
    margin: 15px 20px;
}

/* Services Section */
.services-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.add-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    gap: 8px;
}

.add-service button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-service span {
    font-size: 11px;
    color: var(--color-text-secondary);
}

/* Currency Section */
.currency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.currency-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.currency-header a {
    text-decoration: none;
    font-size: 14px;
}

.currency-rates {
    display: flex;
    justify-content: space-between;
}

.currency-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 48%;
    gap: 8px;
}

.curr-flag {
    font-size: 18px;
}

.curr-flag::after {
    content: " USD";
    font-size: 14px;
    color: var(--color-text-secondary);
}

.currency-item:nth-child(2) .curr-flag::after {
    content: " EUR";
}

.curr-val {
    font-size: 16px;
    font-weight: 500;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-green);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 10;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background-color: var(--panel-bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-text-secondary);
}

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

.nav-item span {
    font-size: 11px;
}

/* Media Query for Desktop Stub */
@media (min-width: 768px) {
    .desktop-stub {
        display: flex;
    }
}

/* Transfer Overlay Full Screen */
.transfer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-bottom);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0 auto;
    right: 0;
}
@media (min-width: 768px) {
    .transfer-overlay {
        display: none;
    }
}
.transfer-overlay.active {
    transform: translateX(0);
}

.tr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #121212;
}

.tr-back {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tr-title {
    font-size: 18px;
    font-weight: 600;
}

.tr-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #121212;
}

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

.tr-section-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.tr-section-header a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.mt-20 {
    margin-top: 25px;
}

.tr-cards-wrapper {
    margin: 0 -20px;
    padding: 0 20px;
}

.tr-cards-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: 40px;
}

.tr-cards-carousel::-webkit-scrollbar {
    display: none;
}

.tr-card-box {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background-color: #1f1f1f;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tr-card-img {
    width: 50px;
    height: 32px;
    background: linear-gradient(135deg, #0d3b66, #1f364d);
    border-radius: 6px;
    position: relative;
}

.tr-card-star {
    position: absolute;
    top: -5px;
    left: -5px;
}

.tr-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tr-card-name {
    font-size: 14px;
}

.tr-card-number {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.tr-card-balance {
    font-size: 14px;
    font-weight: 600;
}

.tr-receiver-item {
    min-width: calc(100vw - 56px);
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.tr-input-box {
    background-color: #1f1f1f;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s ease;
}

.tr-input-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    flex: 1;
}

.tr-input-icons {
    display: flex;
    gap: 15px;
}

.tr-amount-box {
    background-color: #1f1f1f;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 15px;
}

.tr-input-box.invalid {
    border-bottom: 1.5px solid #ff3b30 !important;
}

.tr-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1.5px solid rgba(255,255,255,0.05);
    transition: border-color 0.2s ease;
}

.tr-amount-row.invalid {
    border-bottom: 1.5px solid #ff3b30 !important;
}

.tr-error-msg {
    color: #ff3b30;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 4px;
    display: none;
}

.tr-error-msg.visible {
    display: block;
}

.tr-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tr-amount-row input {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
    flex: 1;
}

.tr-currency {
    color: var(--color-text-secondary);
    font-size: 15px;
}

.tr-purpose-row {
    padding: 15px 0;
}

.tr-purpose-row input {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 15px;
    outline: none;
    width: 100%;
}

.tr-footer {
    padding: 20px;
    background-color: #121212;
}

.tr-submit-btn {
    width: 100%;
    background-color: var(--color-green);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* History Overlay Full Screen */
.history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-bottom);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0 auto;
    right: 0;
}
@media (min-width: 768px) {
    .history-overlay {
        display: none;
    }
}
.history-overlay.active {
    transform: translateX(0);
}

.ho-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #1a1a1a;
}

.ho-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ho-tabs {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px;
}

.ho-tab {
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ho-tab.active {
    background: rgba(255,255,255,0.15);
    color: var(--color-green);
}

.ho-search-wrapper {
    background-color: #1a1a1a;
    padding: 0 20px 15px;
}

.ho-search {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary);
}

.ho-search input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    width: 100%;
    font-size: 15px;
}

.ho-filters {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background-color: #121212;
    overflow-x: auto;
    align-items: center;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ho-filters::-webkit-scrollbar { display: none; }

.ho-filter-btn {
    border: 1px solid rgba(255,255,255,0.2);
    background: none;
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
}
.ho-filter-btn.active {
    border-color: var(--color-green);
    color: #fff;
}

.ho-card-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}
.ho-card-icon.blue { background: #1f364d; }
.ho-card-icon.white { background: #e0e0e0; }

.ho-list {
    flex: 1;
    overflow-y: auto;
    background-color: #121212;
}

.ho-date-group {
    padding: 0;
}

.ho-date-title {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 15px 20px 5px;
    background-color: #1a1a1a;
    margin-bottom: 0;
}

.ho-date-group .history-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin: 0;
    padding: 15px 20px;
    border-radius: 0;
    background: transparent;
}
@media (min-width: 768px) {
    .app-container, .fab, .bottom-nav, .transfer-overlay, .confirm-overlay {
        display: none !important;
    }
}

/* Confirmation Overlay Full Screen */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-bottom);
    z-index: 1001; /* Выше чем transfer-overlay */
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0 auto;
    right: 0;
}

.confirm-overlay.active {
    transform: translateX(0);
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #121212;
}

.confirm-back {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.confirm-title {
    font-size: 18px;
    font-weight: 500;
}

.confirm-content {
    flex: 1;
    overflow-y: auto;
    background-color: #121212;
    padding-top: 10px;
}

.confirm-info-list {
    display: flex;
    flex-direction: column;
}

.confirm-info-row {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 8px 20px;
}

.confirm-info-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    min-width: 120px;
    flex-shrink: 0;
}

.confirm-info-card-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.confirm-info-card-logo {
    font-weight: 900;
    font-size: 11px;
    font-style: italic;
    color: #8f9496;
}

.confirm-info-val {
    font-size: 15px;
    color: #fff;
    font-weight: 400;
    text-align: left;
}

/* Calculation Box matching screenshot */
.confirm-calc-box {
    background-color: #1c1c1e;
    border-radius: 18px;
    padding: 20px;
    margin: 25px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.confirm-calc-handle {
    height: 5px;
    background-color: #5d5d61; /* Sleek medium gray matching screenshot */
    margin: -20px -20px 10px -20px;
}

.confirm-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.confirm-calc-row span:last-child {
    color: #fff;
}

.confirm-calc-divider {
    border-top: 1px dashed #34383a;
    margin: 4px 0;
}

.confirm-calc-row.total {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.confirm-calc-row.total span:last-child {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.confirm-footer {
    padding: 20px;
    background-color: #121212;
}

.confirm-submit-btn {
    width: 100%;
    background-color: var(--color-green);
    color: #000;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Video Loader Overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.video-overlay.active {
    display: flex;
}
.video-overlay video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    z-index: 2002;
    mix-blend-mode: screen; /* Removes solid black background dynamically */
}

/* Fallback Loader Spinner */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(123, 212, 72, 0.2);
    border-top: 4px solid var(--color-green);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
    z-index: 2001;
    position: absolute;
}
@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pending Overlay */
.pending-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-bottom);
    z-index: 1000;
    display: none;
    flex-direction: column;
    margin: 0 auto;
    max-width: 500px;
    right: 0;
}
.pending-overlay.active {
    display: flex;
}
.pending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #121212;
}
.pending-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.pending-title {
    font-size: 18px;
    font-weight: 600;
}
.pending-box-icon {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pending-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pending-illustration-card {
    background-color: #c6d8ff;
    border-radius: 24px;
    width: 100%;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pending-text-dialog,
.pending-text-sign {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
}
.pending-text-wait {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 8px;
}
.pending-amount {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-top: 30px;
}
.pending-receiver {
    font-size: 15px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 15px;
}
.pending-receiver span {
    color: #ffffff;
    font-weight: 500;
}
.pending-footer {
    padding: 20px;
    background-color: #121212;
}
.pending-home-btn {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    background-color: var(--color-green);
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(123, 212, 72, 0.2);
}
@media (min-width: 768px) {
    .pending-overlay {
        display: none;
    }
}

/* Result Screen */
.result-video-container {
    width: 55%;
    max-width: 220px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-video {
    width: 130%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}
.result-success-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-green);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
}
.result-details-card {
    width: 100%;
    background-color: #1e1e1e;
    border-radius: 16px;
    margin-top: 30px;
    padding: 16px 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.result-details-card:active {
    background-color: #2a2a2a;
}
.result-details-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.result-details-arrows {
    color: var(--color-green);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -2px;
}
.result-details-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}
.result-details-chevron {
    color: #666;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.result-details-card.open .result-details-chevron {
    transform: rotate(90deg);
}
