/* GoDuckPay - Simple Page with #11171E Background */

/* Import SF Pro Display Font */
@import url('../assets/fonts/sf-pro-display.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #11171E;
    color: #ffffff;
    min-height: 100vh;
}

.app-container {
    min-height: 100vh;
    position: relative;
    padding: 0.625rem;
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.625rem;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.9375rem;
    backdrop-filter: blur(0.625rem);
    gap: 0.9375rem;
}

.profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-image {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    color: white;
}

.profile-placeholder svg {
    width: 1.5rem;
    height: 1.5rem;
}

.profile-img.show {
    display: block;
}

.profile-placeholder.hide {
    display: none;
}

/* Gift Icon */
.gift-icon {
    width: 3.125rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.gift-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: #ffffff;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-top: 0.3125rem;
}

.action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0.625rem);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    gap: 0.5rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-0.125rem);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    width: 1.25rem;
    height: 1.25rem;
}

.action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

.deposit-btn {
    background: rgba(255, 255, 255, 0.15);
}

.withdrawal-btn {
    background: rgba(255, 255, 255, 0.15);
}

/* iOS Style Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(0.5rem);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1C1C1E;
    border-radius: 1.25rem 1.25rem 0 0;
    width: 100%;
    max-width: 100vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem 1rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: #1C1C1E;
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #8E8E93;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.close-btn i {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-body {
    padding: 1rem;
}

/* Amount Section */
.amount-section {
    margin-bottom: 1.5rem;
}

.amount-section label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8E8E93;
    margin-bottom: 0.5rem;
}

.amount-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #8E8E93;
    z-index: 1;
}

.amount-input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
    text-align: right;
}

.amount-input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.amount-input-group input::placeholder {
    color: #8E8E93;
}

.balance-info {
    font-size: 0.875rem;
    color: #8E8E93;
    margin-top: 0.5rem;
    text-align: right;
}

/* Payment Methods */
.payment-methods,
.withdrawal-methods {
    margin-bottom: 1.5rem;
}

.payment-methods h3,
.withdrawal-methods h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.method-option {
    cursor: pointer;
}

.method-option input[type="radio"] {
    display: none;
}

.method-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.method-option input[type="radio"]:checked + .method-card {
    background: rgba(0, 122, 255, 0.2);
    border: 0.0625rem solid #007AFF;
}

.method-option:hover .method-card {
    background: rgba(255, 255, 255, 0.1);
}

.method-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.method-icon i {
    width: 1.25rem;
    height: 1.25rem;
    color: #ffffff;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.method-desc {
    font-size: 0.875rem;
    color: #8E8E93;
}

/* Primary Button */
.primary-btn {
    width: 100%;
    background: #007AFF;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.primary-btn:hover {
    background: #0056CC;
}

.primary-btn:active {
    transform: scale(0.98);
}

