/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移动端优化 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 移动端触摸优化 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 5.5rem;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #07c160 0%, #00a854 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.header h1 {
    font-size: 1.125rem;
    font-weight: 600;
}

.back-btn, .header-right i {
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover, .header-right i:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 用户信息卡片 */
.user-card {
    background: white;
    margin: 1rem;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.avatar {
    width: 3.75rem;
    height: 3.75rem;
    background: linear-gradient(135deg, #07c160, #00a854);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.avatar i {
    font-size: 1.5rem;
    color: white;
}

.user-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-details p {
    color: #666;
    font-size: 0.875rem;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.balance-item {
    text-align: center;
    flex: 1;
}

.balance-item .label {
    display: block;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.balance-item .amount {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #07c160;
}

.amount.warn {
    color: #ff4d4f !important;
    font-weight: 700;
    animation: warnBlink 0.8s 2;
}
@keyframes warnBlink {
    0% { color: #ff4d4f; }
    50% { color: #fff1f0; }
    100% { color: #ff4d4f; }
}

/* 充值金额选择 */
.recharge-section {
    background: white;
    margin: 1rem;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recharge-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
}

.amount-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-option {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.amount-option:hover {
    border-color: #07c160;
    transform: translateY(-2px);
}

.amount-option.active {
    border-color: #07c160;
    background: linear-gradient(135deg, #07c160, #00a854);
    color: white;
}

.amount-option.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 1.25rem 1.25rem 0;
    border-color: transparent #fff transparent transparent;
}

.amount-value {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.amount-desc {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 自定义金额 */
.custom-amount {
    margin-top: 1.25rem;
}

.custom-amount label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0 1rem;
    background: white;
    transition: border-color 0.3s;
    min-height: 3rem;
}

.input-group:focus-within {
    border-color: #07c160;
}

.currency {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1rem;
    background: transparent;
    min-height: 1rem;
}

.input-group input::placeholder {
    color: #999;
}

/* 支付方式 */
.payment-section {
    background: white;
    margin: 1rem;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.payment-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.5rem;
}

.payment-method:hover {
    border-color: #07c160;
}

.payment-method.active {
    border-color: #07c160;
    background: #f0f9ff;
}

.payment-method.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f5f5f5;
    cursor: not-allowed;
}

.payment-method.disabled .method-check i {
    color: #ccc;
}

.method-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-method:first-child .method-icon {
    background: #07c160;
    color: white;
}

.payment-method:last-child .method-icon {
    background: #1890ff;
    color: white;
}

.method-info {
    flex: 1;
    min-width: 0;
}

.method-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.method-desc {
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.method-check {
    font-size: 1.25rem;
    color: #07c160;
    flex-shrink: 0;
}

.payment-method:not(.active) .method-check {
    color: #ccc;
}

/* 充值详情 */
.recharge-details {
    background: white;
    margin: 1rem;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.detail-item.total {
    border-top: 1px solid #e9ecef;
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.recharge-amount, .bonus-amount, .total-amount {
    color: #07c160;
    font-weight: 600;
}

/* 底部支付按钮 */
.bottom-section {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 1.25rem 1.25rem 0 0;
    z-index: 99;
}

.pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #07c160, #00a854);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.3);
}

.pay-btn:active {
    transform: translateY(0);
}

.agreement {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.agreement a {
    color: #07c160;
    text-decoration: none;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 21.875rem;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(3.125rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.close-btn {
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background-color 0.3s;
    min-width: 2rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.modal-body {
    padding: 1.5rem;
}

.qr-code {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code i {
    font-size: 7.5rem;
    color: #07c160;
    margin-bottom: 1rem;
}

.qr-code p {
    color: #666;
    font-size: 0.875rem;
}

.payment-info {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.final-amount {
    color: #07c160;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e9ecef;
    position: sticky;
    bottom: 0;
    background: white;
}

.cancel-btn, .confirm-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 2.5rem;
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
}

.cancel-btn:hover {
    background: #e9ecef;
}

.confirm-btn {
    background: #07c160;
    color: white;
}

.confirm-btn:hover {
    background: #00a854;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        margin: 0;
        padding-bottom: 6.5rem;
    }
    
    .user-card,
    .recharge-section,
    .payment-section,
    .recharge-details {
        margin: 0.75rem;
        padding: 1.25rem;
    }
    
    .amount-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .amount-option {
        padding: 0.875rem;
        min-height: 3.5rem;
    }
    
    .amount-value {
        font-size: 1.125rem;
    }
    
    .amount-desc {
        font-size: 0.6875rem;
    }
    
    .header {
        padding: 0.875rem 0;
    }
    
    .header-content {
        padding: 0 0.875rem;
    }
    
    .header h1 {
        font-size: 1rem;
    }
    
    .back-btn, .header-right i {
        font-size: 1.125rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
    }
    
    .avatar {
        width: 3.25rem;
        height: 3.25rem;
    }
    
    .avatar i {
        font-size: 1.25rem;
    }
    
    .user-details h3 {
        font-size: 1rem;
    }
    
    .balance-item .amount {
        font-size: 1.125rem;
    }
    
    .recharge-section h2,
    .payment-section h2 {
        font-size: 1rem;
    }
    
    .payment-method {
        padding: 0.875rem;
        min-height: 3rem;
    }
    
    .method-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.125rem;
    }
    
    .method-name {
        font-size: 0.9375rem;
    }
    
    .method-desc {
        font-size: 0.8125rem;
    }
    
    .detail-item {
        font-size: 0.9375rem;
    }
    
    .detail-item.total {
        font-size: 1rem;
    }
    
    .pay-btn {
        font-size: 1rem;
        padding: 0.875rem;
    }
    
    .bottom-section {
        padding: 0.875rem;
    }
    
    .modal {
        padding: 0.75rem;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem 1.25rem;
    }
    
    .qr-code i {
        font-size: 6rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .user-card,
    .recharge-section,
    .payment-section,
    .recharge-details {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .amount-options {
        gap: 0.375rem;
    }
    
    .amount-option {
        padding: 0.75rem;
        min-height: 3rem;
    }
    
    .amount-value {
        font-size: 1rem;
    }
    
    .amount-desc {
        font-size: 0.625rem;
    }
    
    .balance-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .balance-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .balance-item .label {
        margin-bottom: 0;
    }
    
    .payment-method {
        padding: 0.75rem;
    }
    
    .method-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 0.875rem 1rem;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .container {
        min-height: auto;
    }
    
    .header {
        position: relative;
    }
    
    .bottom-section {
        position: relative;
        border-radius: 0;
        margin-top: 1rem;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .amount-option,
    .payment-method,
    .input-group {
        border-width: 1px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功状态 */
.success {
    background: #52c41a !important;
}

/* 错误状态 */
.error {
    background: #ff4d4f !important;
}

/* 无障碍访问优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .container {
        background: #1a1a1a;
        color: #fff;
    }
    
    .user-card,
    .recharge-section,
    .payment-section,
    .recharge-details {
        background: #2d2d2d;
        color: #fff;
    }
    
    .amount-option {
        border-color: #444;
        background: #2d2d2d;
    }
    
    .payment-method {
        border-color: #444;
        background: #2d2d2d;
    }
    
    .input-group {
        border-color: #444;
        background: #2d2d2d;
    }
    
    .modal-content {
        background: #2d2d2d;
        color: #fff;
    }
    
    .bottom-section {
        background: #2d2d2d;
    }
}

/* 登录/注册表单样式 */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: #f8f9fa;
}

.login-form {
    width: 100%;
    max-width: 380px;
    margin: 2.5rem auto 0 auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e9ecef;
    border-radius: 0.75rem;
    font-size: 1rem;
    outline: none;
    background: #f8f9fa;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #07c160;
    background: #fff;
}

.captcha-group .input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 48px;
}

.captcha-group .input-group input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.captcha-img {
    height: 100%;
    width: 90px;
    min-width: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    background: #fff;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s;
    border: none;
    display: block;
}

.captcha-img:active,
.captcha-img:focus {
    box-shadow: 0 0 0 2px #07c16033;
}

.captcha-btn {
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 100px;
}
.captcha-btn:disabled {
    background: #b2e5c2;
    color: #fff;
    cursor: not-allowed;
}

.login-btn {
    margin-top: 0.5rem;
    font-size: 1.125rem;
}

.wechat-login-btn {
    width: 100%;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: background 0.3s;
}
.wechat-login-btn i {
    font-size: 1.25rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #bbb;
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem 0;
}
.divider span {
    flex: none;
    background: #fff;
    padding: 0 1rem;
    z-index: 1;
}
.divider:before, .divider:after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
    margin: 0 0.5rem;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.form-footer a {
    color: #07c160;
    text-decoration: none;
    padding: 0 0.25rem;
    transition: color 0.2s;
}
.form-footer a:hover {
    color: #00a854;
}
.footer-divider {
    color: #bbb;
    font-size: 1em;
    margin: 0 0.1em;
    user-select: none;
}
@media (max-width: 480px) {
    .form-footer {
        font-size: 0.92rem;
        gap: 0.5rem;
    }
}

/* 登录/注册页顶部样式优化 */
.login-header {
    width: 100%;
    max-width: 380px;
    margin: 2.5rem auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #07c160, #00a854);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(7,193,96,0.10);
}
.login-logo i {
    color: #fff;
    font-size: 2rem;
}
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}
.login-subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .login-header {
        max-width: 100%;
        margin: 1.5rem auto 1rem auto;
    }
    .login-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
    }
    .login-logo i {
        font-size: 1.5rem;
    }
    .login-title {
        font-size: 1.15rem;
    }
    .login-subtitle {
        font-size: 0.95rem;
    }
}

/* 主页样式 */
.home-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 80px;
}
.home-user-card {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.home-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 1.5rem;
}
.home-action-btn {
    width: 100%;
    background: #fff;
    color: #222;
    border: 1.5px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.home-action-btn i {
    font-size: 1.2em;
}
.home-action-btn.pay-btn {
    background: #fff;
    color: #222;
    border: 1.5px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.home-action-btn.pay-btn.selected {
    background: linear-gradient(135deg, #07c160, #00a854) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(7,193,96,0.10);
}
.home-action-btn.logout-btn {
    background: #fff0f0;
    color: #ff4d4f;
    border: 1.5px solid #ffb3b3;
}
.home-action-btn.logout-btn:hover {
    background: #ffeded;
    color: #d9363e;
    border-color: #ff7875;
}
.home-action-btn:active {
    filter: brightness(0.95);
    box-shadow: 0 0 0 2px #07c16033;
    border-color: #07c160;
}
.home-action-btn.pay-btn:active {
    background: linear-gradient(135deg, #00a854, #07c160);
    color: #fff;
    box-shadow: 0 0 0 2px #00a85455;
    border: none;
}
.home-action-btn.selected, .home-action-btn:active {
    background: linear-gradient(135deg, #07c160, #00a854) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(7,193,96,0.10);
}
@media (max-width: 480px) {
    .home-actions {
        margin: 0 0.5rem;
        gap: 0.75rem;
    }
    .home-user-card {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .home-action-btn {
        font-size: 1rem;
        padding: 0.85rem 0;
    }
}

.home-action-btn.edit-info-btn {
    background: #fff;
    color: #222;
    border: 1.5px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    margin: 0;
}
.home-action-btn.edit-info-btn i {
    font-size: 1.2em;
}
.home-action-btn.edit-info-btn.selected, .home-action-btn.edit-info-btn:active {
    background: linear-gradient(135deg, #07c160, #00a854) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(7,193,96,0.10);
}
@media (max-width: 480px) {
    .home-action-btn.edit-info-btn {
        font-size: 1rem;
        padding: 0.85rem 0;
    }
}

#helpModal .modal-content {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(7,193,96,0.10);
    width: 100%;
    max-width: 340px;
    padding: 0;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}
#helpModal .modal-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #07c160 0%, #00a854 100%);
    color: #fff;
}
#helpModal .modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}
#helpModal .modal-header .fa-question-circle {
    font-size: 1.25rem;
    color: #fff;
    margin-right: 0.5rem;
}
#helpModal .close-btn {
    font-size: 1.25rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    height: 2rem;
    width: 2rem;
    box-sizing: border-box;
}
#helpModal .close-btn:hover {
    background: rgba(255,255,255,0.15);
}
#helpModal .modal-body {
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    background: #fff;
}
#helpModal .help-list {
    margin: 0;
    padding-left: 1.2em;
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    list-style: disc inside;
}
#helpModal .help-list li {
    margin-bottom: 0.5em;
    padding-left: 0.2em;
}
@media (max-width: 480px) {
    #helpModal .modal-content {
        max-width: 98vw;
    }
    #helpModal .modal-header, #helpModal .modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.tip-toast {
    position: fixed;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #07c160 0%, #00a854 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(7,193,96,0.10);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    min-width: 120px;
    text-align: center;
}
.tip-toast.show {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 480px) {
    .tip-toast {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
        min-width: 90px;
    }
}

.school-logo {
    display: block;
    margin: 0 auto 0.75rem auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(7,193,96,0.10);
    object-fit: cover;
    background: #fff;
}
.school-name {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #07c160;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
@media (max-width: 480px) {
    .school-logo {
        width: 44px;
        height: 44px;
        margin-bottom: 0.5rem;
    }
    .school-name {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }
}

.back-login-btn {
    display: block;
    width: 100%;
    margin: 1.2rem 0 0 0;
    padding: 1rem 0;
    background: linear-gradient(135deg, #fff, #e9ecef);
    color: #07c160 !important;
    border-radius: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(7,193,96,0.08);
    border: 2px solid #07c160;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    letter-spacing: 1px;
}
.back-login-btn:hover, .back-login-btn:active {
    background: linear-gradient(135deg, #07c160 60%, #00a854 100%);
    color: #fff !important;
    border-color: #00a854;
    box-shadow: 0 8px 25px rgba(7,193,96,0.18);
    transform: translateY(-2px) scale(1.02);
}
@media (max-width: 480px) {
    .back-login-btn {
        font-size: 1rem;
        padding: 0.85rem 0;
        margin-top: 1rem;
    }
}

.back-login-float {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07c160, #00a854);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(7,193,96,0.12);
    font-size: 1.25rem;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    text-decoration: none;
}
.back-login-float:hover, .back-login-float:active {
    background: linear-gradient(135deg, #00a854, #07c160);
    color: #fff;
    box-shadow: 0 6px 18px rgba(7,193,96,0.18);
}
@media (max-width: 480px) {
    .back-login-float {
        top: 0.7rem;
        left: 0.7rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
} 