/* Hybrid POS Style (Based on Homepage) */
:root {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-dark: #0f0c29;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow-glow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --border-glass: 1px solid rgba(255, 255, 255, 0.18);
    --card-radius: 24px;
    --input-bg: rgba(0, 0, 0, 0.3);

    /* Neon Glows */
    --primary-glow: #00f2fe;
    --accent-glow: #f093fb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 87, 108, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 172, 254, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(67, 233, 123, 0.1) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Particles Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(102, 126, 234, 0.25);
    border-radius: 50%;
    animation: float 20s infinite;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

/* Header */
header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}

.app-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-glow), var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
    letter-spacing: 1px;
}

/* Main Content */
main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Banknotes Grid */
.banknotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.banknote-btn {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 15px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.banknote-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.banknote-btn:active {
    transform: scale(0.95);
}

.banknote-btn img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* Input Section */
.input-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glow);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

input[type="number"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    outline: none;
    transition: all 0.3s;
}

input[type="number"]:focus {
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Preset Percentages */
.presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.preset-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.preset-pill:hover,
.preset-pill.active {
    background: var(--gradient-3);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.4);
}

/* Results */
.result-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--card-radius);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-3);
}

.total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.total-amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.commission-info {
    font-size: 1.1rem;
    color: #4facfe;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.words-display {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    min-height: 1.2em;
}

/* Action Buttons */
.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--gradient-3);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.reset-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff4d4d;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reset-btn:hover {
    background: rgba(255, 50, 50, 0.2);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.2);
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .banknotes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .total-amount {
        font-size: 2.5rem;
    }

    main {
        padding: 1rem;
    }
}