:root {
    --bg: #070d1d;
    --panel: rgba(11, 20, 45, 0.84);
    --panel-strong: rgba(15, 27, 58, 0.92);
    --panel-border: rgba(92, 140, 255, 0.34);
    --text: #e8efff;
    --muted: #9ab0d4;
    --accent-a: #2f67ff;
    --accent-b: #30c6ff;
    --danger: #d45d6d;
}

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

body {
    min-height: 100vh;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 14%, rgba(70, 106, 255, 0.24) 0%, rgba(70, 106, 255, 0) 38%),
        radial-gradient(circle at 88% 84%, rgba(48, 198, 255, 0.18) 0%, rgba(48, 198, 255, 0) 42%),
        linear-gradient(150deg, #050a17 0%, #091327 45%, #0a1530 100%);
    padding: 28px 18px calc(36px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.46;
    z-index: -1;
}

.orb-a {
    width: 260px;
    height: 260px;
    background: #2447a5;
    top: -90px;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

.orb-b {
    width: 300px;
    height: 300px;
    background: #1f4e95;
    right: -120px;
    top: 20%;
    animation: float 10s ease-in-out infinite reverse;
}

.orb-c {
    width: 220px;
    height: 220px;
    background: #1e6aa0;
    bottom: -90px;
    left: 35%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-14px) translateX(10px);
    }
}

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

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(14, 27, 62, 0.95), rgba(10, 19, 44, 0.92));
    border: 1px solid var(--panel-border);
    box-shadow: 0 18px 48px rgba(8, 22, 56, 0.42);
    margin-bottom: 22px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.14em;
    background: rgba(48, 198, 255, 0.12);
    border: 1px solid rgba(85, 151, 255, 0.4);
    color: #9ad5ff;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    margin-bottom: 12px;
    color: #eaf2ff;
}

.hero-subtitle {
    color: var(--muted);
    font-size: clamp(15px, 2.4vw, 18px);
    max-width: 48ch;
    line-height: 1.65;
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: end;
}

.metric-card {
    background: rgba(20, 37, 78, 0.78);
    border: 1px solid rgba(92, 140, 255, 0.26);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.metric-card span {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #7cb7ff, #5bf0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.metric-card small {
    color: var(--muted);
    font-size: 13px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "account account"
        "upload upload"
        "storage inspiration"
        "videoPrompt videoPrompt"
        "photo video"
        "ai ai";
    gap: 18px;
    align-items: stretch;
}

.panel {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(12, 28, 82, 0.34);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(20, 53, 128, 0.4);
}

.upload-panel { grid-area: upload; }
.account-panel { grid-area: account; }
.storage-panel { grid-area: storage; }
.inspiration-panel { grid-area: inspiration; }
.video-prompt-panel { grid-area: videoPrompt; }
.photo-panel { grid-area: photo; }
.video-panel { grid-area: video; }
.ai-panel { grid-area: ai; }

.auth-panel {
    margin-bottom: 18px;
}

.panel-title {
    margin-bottom: 16px;
}

.panel-title h2 {
    font-size: 24px;
    margin-bottom: 6px;
    color: #e8efff;
}

.panel-title p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.storage-panel .panel-title,
.account-panel .panel-title,
.inspiration-panel .panel-title,
.video-prompt-panel .panel-title,
.gallery-panel .panel-title {
    min-height: 72px;
}

.auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-form input {
    border-radius: 12px;
    border: 1px solid rgba(93, 150, 255, 0.38);
    background: rgba(8, 21, 52, 0.72);
    color: var(--text);
    padding: 0 14px;
    height: 44px;
    font-size: 14px;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(90, 199, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(77, 170, 255, 0.26);
}

.auth-actions,
.account-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-message {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.auth-message.error {
    color: #ff8ca0;
}

.auth-message.success {
    color: #73f5d2;
}

.account-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    border: 1px dashed rgba(92, 140, 255, 0.34);
    border-radius: 12px;
    background: var(--panel-strong);
    padding: 12px 14px;
}

.account-meta p {
    color: #bfd2f0;
    font-size: 14px;
    line-height: 1.55;
}

.login-history {
    margin-top: 12px;
    border: 1px solid rgba(92, 140, 255, 0.24);
    border-radius: 12px;
    background: rgba(10, 20, 48, 0.78);
    padding: 12px;
    min-height: 88px;
    color: #bfd2f0;
    font-size: 13px;
    line-height: 1.55;
}

.login-history-item {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(92, 140, 255, 0.26);
}

.login-history-item:last-child {
    border-bottom: none;
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

#mediaInput,
#backupInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
}

.file-picker,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    touch-action: manipulation;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid rgba(122, 174, 255, 0.48);
    color: #d7e8ff;
    background: rgba(20, 36, 82, 0.64);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    touch-action: manipulation;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    color: #fff;
    background: linear-gradient(120deg, #ce586d, #f17f97);
    box-shadow: 0 10px 20px rgba(206, 88, 109, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    touch-action: manipulation;
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    color: #fff;
    background: linear-gradient(120deg, #2ea392, #57e1cb);
    box-shadow: 0 10px 20px rgba(46, 163, 146, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    touch-action: manipulation;
}

.file-picker {
    color: #c7dcff;
    border: 1px dashed rgba(122, 174, 255, 0.52);
    background: rgba(20, 36, 82, 0.52);
}

.file-picker:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-success:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-primary {
    border: none;
    color: #fff;
    background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 10px 20px rgba(44, 102, 255, 0.32);
}

.upload-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.storage-usage {
    border: 1px dashed rgba(92, 140, 255, 0.34);
    border-radius: 12px;
    background: var(--panel-strong);
    color: #bfd2f0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}

.storage-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.empty-state {
    border: 1px dashed rgba(92, 140, 255, 0.32);
    border-radius: 14px;
    padding: 16px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 14px;
    background: var(--panel-strong);
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(92, 140, 255, 0.2);
    background: rgba(10, 20, 48, 0.86);
}

.media-item img,
.media-item video {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #101a35;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: rgba(56, 46, 36, 0.5);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.delete-btn:hover {
    background: var(--danger);
    transform: scale(1.06);
}

.inspiration-card {
    border-radius: 14px;
    border: 1px solid rgba(97, 149, 255, 0.38);
    background: linear-gradient(150deg, rgba(21, 37, 82, 0.88), rgba(12, 24, 58, 0.78));
    padding: 16px;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.inspiration-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.5) 38%, transparent 58%);
    transform: translateX(-110%);
    animation: shimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 65% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(120%);
    }
}

.inspiration-label {
    color: #82f0ff;
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.inspiration-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.inspiration-card p {
    color: #c3d5f4;
    line-height: 1.65;
    margin-bottom: 8px;
}

.inspiration-tags {
    color: #91dcff !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.inspiration-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-prompt-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 14px;
    flex: 1;
}

.video-prompt-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 15%, rgba(0, 255, 224, 0.2), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(96, 122, 255, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(9, 17, 38, 0.96), rgba(15, 24, 56, 0.96));
    border: 1px solid rgba(77, 124, 255, 0.35);
    box-shadow: 0 12px 34px rgba(12, 28, 82, 0.42), inset 0 0 0 1px rgba(132, 170, 255, 0.15);
}

.video-prompt-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(125, 212, 255, 0.04),
        rgba(125, 212, 255, 0.04) 1px,
        transparent 1px,
        transparent 6px
    );
    pointer-events: none;
}

.video-prompt-panel > * {
    position: relative;
    z-index: 1;
}

.video-prompt-panel .panel-title h2 {
    color: #d9e7ff;
    text-shadow: 0 0 14px rgba(96, 190, 255, 0.35);
}

.video-prompt-panel .panel-title p,
.video-prompt-panel .video-prompt-status {
    color: #9ab4db;
}

.video-prompt-card {
    border-radius: 14px;
    border: 1px solid rgba(97, 149, 255, 0.38);
    background: linear-gradient(150deg, rgba(21, 37, 82, 0.88), rgba(12, 24, 58, 0.78));
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(171, 202, 255, 0.08);
}

.video-prompt-label {
    color: #82f0ff;
    font-size: 12px;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.video-prompt-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f2f7ff;
}

.video-prompt-card p {
    color: #c3d5f4;
    line-height: 1.6;
    margin-bottom: 8px;
}

.video-prompt-tags {
    color: #91dcff !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.video-prompt-output {
    border-radius: 12px;
    border: 1px solid rgba(95, 158, 255, 0.4);
    background: linear-gradient(140deg, rgba(9, 19, 44, 0.9), rgba(13, 29, 69, 0.85));
    color: #d7e7ff;
    padding: 14px;
    font-size: 13px;
    font-family: "JetBrains Mono", "Consolas", "Monaco", monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 210px;
    box-shadow: inset 0 0 0 1px rgba(125, 169, 255, 0.12);
}

.video-prompt-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-prompt-panel .btn-primary {
    background: linear-gradient(120deg, #2b65ff, #35c8ff);
    box-shadow: 0 10px 22px rgba(44, 102, 255, 0.35);
}

.video-prompt-panel .btn-secondary {
    border-color: rgba(122, 174, 255, 0.48);
    color: #d7e8ff;
    background: rgba(20, 36, 82, 0.64);
}

.video-prompt-config {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.video-prompt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-prompt-field label {
    color: #abbee0;
    font-size: 13px;
}

.video-prompt-field select,
.video-prompt-field input {
    border-radius: 10px;
    border: 1px solid rgba(93, 150, 255, 0.38);
    background: rgba(8, 21, 52, 0.72);
    color: #e9f2ff;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
}

.video-prompt-field select:focus,
.video-prompt-field input:focus {
    outline: none;
    border-color: rgba(90, 199, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(77, 170, 255, 0.26);
}

.video-prompt-field-keywords {
    grid-column: 1 / -1;
}

.video-prompt-status {
    margin-top: 8px;
    color: #9ab4db;
    font-size: 13px;
}

.chat-box {
    border-radius: 14px;
    border: 1px solid rgba(95, 158, 255, 0.28);
    background: rgba(10, 20, 48, 0.76);
    padding: 14px;
    min-height: 280px;
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.chat-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.chat-input-row input {
    border-radius: 12px;
    border: 1px solid rgba(95, 158, 255, 0.35);
    background: rgba(8, 21, 52, 0.72);
    color: var(--text);
    padding: 0 14px;
    height: 44px;
    font-size: 14px;
}

.chat-input-row input::placeholder {
    color: rgba(164, 187, 222, 0.8);
}

.chat-input-row input:focus {
    outline: none;
    border-color: rgba(90, 199, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(77, 170, 255, 0.26);
}

.message {
    width: fit-content;
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    animation: pop 0.2s ease;
}

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

.user-message {
    margin-left: auto;
    background: linear-gradient(125deg, #2b65ff, #35c8ff);
    color: #fff;
}

.ai-message {
    background: rgba(10, 20, 48, 0.88);
    border: 1px solid rgba(95, 158, 255, 0.2);
}

.site-footer {
    color: var(--muted);
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .bg-orb {
        opacity: 0.26;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .storage-panel .panel-title,
    .account-panel .panel-title,
    .inspiration-panel .panel-title,
    .video-prompt-panel .panel-title,
    .gallery-panel .panel-title {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    body {
        padding: 14px 10px calc(18px + env(safe-area-inset-bottom));
    }

    .hero,
    .panel {
        border-radius: 14px;
        padding: 14px;
    }

    .hero {
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: clamp(24px, 7.2vw, 32px);
    }

    .hero-subtitle,
    .panel-title p {
        font-size: 13px;
        line-height: 1.55;
    }

    .panel-title {
        margin-bottom: 12px;
    }

    .panel-title h2 {
        font-size: 20px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 14px;
    }

    .dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "account"
            "upload"
            "storage"
            "inspiration"
            "videoPrompt"
            "photo"
            "video"
            "ai";
        gap: 12px;
    }

    .upload-actions,
    .auth-actions,
    .account-actions,
    .inspiration-actions,
    .video-prompt-actions,
    .storage-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-form,
    .account-meta {
        grid-template-columns: 1fr;
    }

    .video-prompt-layout {
        grid-template-columns: 1fr;
    }

    .video-prompt-config {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .media-item img,
    .media-item video {
        height: 150px;
    }

    .chat-box {
        min-height: 220px;
        max-height: min(55vh, 340px);
        padding: 10px;
    }

    .chat-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .message {
        max-width: 92%;
        font-size: 13px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-success,
    .file-picker,
    .chat-input-row input,
    .auth-form input {
        width: 100%;
        min-height: 44px;
    }

    .chat-input-row input {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .kicker {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-item img,
    .media-item video {
        height: 180px;
    }
}

/* ==================== 支付功能样式 ==================== */

.payment-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
}

.payment-amount-section {
    margin-bottom: 2rem;
}

.payment-amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.currency {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.payment-amount-input {
    font-size: 2.5rem;
    font-weight: 700;
    width: 200px;
    border: none;
    border-bottom: 3px solid #667eea;
    background: transparent;
    text-align: center;
    padding: 0.5rem;
    color: #667eea;
    outline: none;
    transition: border-color 0.3s;
}

.payment-amount-input:focus {
    border-bottom-color: #764ba2;
}

.payment-amount-input::placeholder {
    color: rgba(102, 126, 234, 0.3);
}

.payment-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.quick-amount-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #f5f7fa, #fff);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-amount-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f5f7fa, #fff);
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.payment-method-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.payment-icon {
    font-size: 2rem;
}

.payment-qr-container {
    position: relative;
    min-height: 400px;
}

.payment-qr-section {
    display: none;
    text-align: center;
    animation: fadeInPayment 0.3s ease;
}

.payment-qr-section.active {
    display: block;
}

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

.payment-amount-badge {
    margin-bottom: 1rem;
}

.payment-amount-badge span {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.payment-qr-box {
    width: 280px;
    height: 280px;
    margin: 0 auto 1rem;
    background: #f8f9fa;
    border: 3px dashed rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.payment-qr-box:hover {
    border-color: #667eea;
    background: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.qr-placeholder {
    text-align: center;
    color: #999;
    padding: 1rem;
}

.qr-placeholder p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.payment-tips {
    color: #666;
    font-size: 0.95rem;
    margin: 1rem 0 1.5rem;
}

.payment-qr-section .btn-secondary {
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .payment-amount-input {
        font-size: 2rem;
        width: 160px;
    }

    .payment-quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-qr-box {
        width: 240px;
        height: 240px;
    }

    .payment-amount-badge span {
        font-size: 1.25rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 420px) {
    .payment-amount-input {
        font-size: 1.75rem;
        width: 140px;
    }

    .payment-quick-amounts {
        gap: 0.5rem;
    }

    .quick-amount-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .payment-methods {
        gap: 0.75rem;
    }

    .payment-method-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .payment-qr-box {
        width: 200px;
        height: 200px;
    }
}
