/* css/recharge.css - Common styles for recharge module */

/* Main containers */
.recharge-container,
.recharge-store,
.edit-container,
.view-container,
.purchase-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.recharge-container h2,
.recharge-store h2,
.edit-container h2,
.view-container h2,
.purchase-container h2 {
    color: #333;
    font-size: 24px;
    font-weight: 500;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.recharge-store h3,
.purchase-header h2 {
    color: #555;
    font-size: 20px;
    font-weight: 500;
    margin: 20px 0 12px 0;
}

/* Account info */
.account-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.account-info .balance {
    font-size: 18px;
    font-weight: bold;
}

.account-info .balance small {
    font-size: 12px;
    opacity: 0.9;
}

.account-info .login-link {
    background-color: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 13px;
}

.account-info .login-link:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Alert messages */
.alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    font-size: 13px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-primary {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge.limited {
    background-color: #ffc107;
    color: #000;
}

.badge.one-time {
    background-color: #17a2b8;
    color: white;
    margin-top: 5px;
}

/* Package grid - for index.php */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.limited-section, .regular-section {
    grid-column: 1 / -1;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title i {
    margin-right: 8px;
}

.section-title .limited-icon {
    color: #ffc107;
}

.section-title .regular-icon {
    color: #6c757d;
}

/* Package card */
.package-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    width: 100%;
    min-width: 0;
}

.package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.package-card.limited-offer {
    border: 2px solid #ffc107;
}

.package-card.unavailable {
    opacity: 0.7;
    filter: grayscale(0.5);
}

/* Package header */
.package-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    position: relative;
}

.package-header.limited {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.package-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    padding-right: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    cursor: help;
}

.package-header h4:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

.package-id {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
}

.package-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
    margin-top: 5px;
    background: rgba(255,255,255,0.2);
}

/* Package body */
.package-body {
    padding: 12px 15px;
    flex: 1;
}

.points-display {
    text-align: center;
    margin-bottom: 10px;
}

.points-amount {
    font-size: 28px;
    font-weight: bold;
    color: #28a745;
    line-height: 1.2;
}

.points-label {
    color: #666;
    font-size: 11px;
}

/* Bonus display */
.bonus-display {
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
}

.bonus-points {
    color: #ffc107;
    font-weight: bold;
    font-size: 12px;
}

.bonus-points i {
    font-size: 12px;
}

.bonus-items-list {
    margin-top: 5px;
    font-size: 11px;
    color: #666;
	cursor: help;
}

.bonus-items-list i {
    font-size: 10px;
}

.bonus-items-list.empty {
    cursor: not-allowed;
}

/* Price summary */
.price-summary {
    text-align: center;
    padding: 6px 8px;
    background: #e8f5e9;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 12px;
    color: #2e7d32;
}

.price-summary i {
    margin-right: 3px;
    font-size: 11px;
}

/* Offer info */
.offer-info {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 6px 8px;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 10px;
}

.offer-info i {
    margin-right: 3px;
    font-size: 10px;
}

.offer-info div {
    margin-bottom: 2px;
}

/* Package footer */
.package-footer {
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* Select button */
.btn-select {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-select:hover:not(:disabled) {
    background: #0069d9;
}

.btn-select:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-select.unavailable {
    background: #6c757d;
}

.btn-select i {
    font-size: 12px;
    margin-right: 4px;
}

/* Table styles - for packages.php */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

.horizontal-table {
    width: 100%;
    border-collapse: collapse;
}

.horizontal-table th {
    vertical-align: middle;
    white-space: nowrap;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 10px;
}

.horizontal-table td {
    vertical-align: top;
    white-space: nowrap;
    font-size: 12px;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.horizontal-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* Currency badge */
.currency-badge {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 0.85em;
    display: inline-block;
    margin-bottom: 3px;
}

/* Price tag */
.price-tag {
    font-weight: bold;
    color: #28a745;
}

/* Price tooltip trigger */
.price-tooltip {
    cursor: help;
    display: inline-block;
}

.price-tooltip:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* Bonus Tooltip Styles */
.bonus-tooltip-content {
    min-width: 220px;
    max-width: 300px;
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid #444;
}

.bonus-tooltip-header {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #000;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bonus-tooltip-items-list,
.bonus-items-list {
    padding: 8px;
}

.bonus-item-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
    transition: background-color 0.2s;
}

.bonus-item-row:last-child {
    border-bottom: none;
}

.bonus-item-row:hover {
    background-color: #3a3a3a;
    border-radius: 4px;
}

.bonus-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-item-icon img {
    display: block;
    border-radius: 4px;
    image-rendering: pixelated;
}

.bonus-item-qty {
    width: 40px;
    text-align: center;
}

.bonus-quantity {
    background: rgba(255,193,7,0.2);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    color: #ffc107;
    font-weight: 600;
    display: inline-block;
}

.bonus-item-id {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.bonus-item-id-text {
    font-family: monospace;
    background: #363636;
    padding: 2px 4px;
    border-radius: 3px;
    color: #aaa;
    font-size: 11px;
}

.bonus-tooltip-footer {
    background: #363636;
    padding: 10px 12px;
    border-top: 1px solid #444;
    margin-bottom: 2px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-header .close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 10px;
    color: #666;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Purchase history table */
.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 12px;
}

.history-table th {
    background: #f8f9fa;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 12px;
}

.history-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.history-table tr:hover td {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-refunded {
    background-color: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background-color: #fff3cd;
    color: #856404;
}

.status-unpaid {
    background-color: #fff3cd;
    color: #856404;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 13px;
}

.loading i {
    margin-right: 5px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .account-info {
        flex-direction: column;
        text-align: center;
    }
    
    .history-table {
        display: block;
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn,
    .btn-select {
        width: 100%;
        justify-content: center;
    }
    
    .horizontal-table {
        display: block;
        overflow-x: auto;
    }
    
    .horizontal-table th,
    .horizontal-table td {
        white-space: nowrap;
    }
}

/* Form styles - for edit.php */
.form-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
}

.form-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.form-header .package-id {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

.form-body {
    padding: 25px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #667eea;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.form-group label i {
    margin-right: 5px;
    color: #667eea;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-6 {
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

.col-md-4 {
    width: 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.currency-input {
    display: flex;
    align-items: center;
}

.currency-label {
    background: #f0f0f0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-weight: 600;
    color: #555;
    min-width: 60px;
}

.currency-input .form-control {
    border-radius: 0 5px 5px 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
}

.bonus-items-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.bonus-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    padding: 10px;
}

.bonus-item-row .item-id {
    flex: 2;
}

.bonus-item-row .item-qty {
    flex: 1;
}

.bonus-item-row .item-actions {
    flex: 0 0 40px;
}

.btn-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-remove-item:hover {
    background: #c82333;
}

.btn-add-item {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.btn-add-item:hover {
    background: #218838;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.limited-offer-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

/* View.php specific styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.info-card.primary {
    border-left-color: #28a745;
}

.info-card.warning {
    border-left-color: #ffc107;
}

.info-card.danger {
    border-left-color: #dc3545;
}

.info-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-card-value {
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.info-card-value small {
    font-size: 14px;
    font-weight: normal;
    color: #999;
    margin-left: 5px;
}

.info-card-sub {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.prices-section,
.bonus-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.price-item {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-currency {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-currency i {
    color: #ffc107;
}

.price-amount {
    font-size: 20px;
    font-weight: 600;
    color: #28a745;
}

.bonus-points-display {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bonus-points-display i {
    color: #ffc107;
    font-size: 24px;
}

.bonus-points-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffc107;
}

.bonus-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.bonus-item-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}

.bonus-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bonus-item-icon {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-item-icon img {
    max-width: 24px;
    max-height: 24px;
}

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

.bonus-item-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.bonus-item-qty {
    font-size: 16px;
    font-weight: 600;
    color: #ffc107;
}

.bonus-item-name {
    font-size: 13px;
    color: #333;
}

.limited-section {
    background: #fff3cd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #ffc107;
}

.limited-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.limited-item i {
    width: 20px;
    color: #ffc107;
}

.limited-label {
    font-weight: 500;
    color: #856404;
    min-width: 100px;
}

.limited-value {
    color: #333;
    font-weight: 500;
}

.limited-date {
    font-family: monospace;
    background: rgba(255,255,255,0.5);
    padding: 3px 8px;
    border-radius: 4px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

/* Purchase.php specific styles */
.back-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.purchase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.package-summary {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.summary-header.limited {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.summary-header h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
}

.summary-body {
    padding: 25px;
}

.purchase-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.form-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.currency-option {
    position: relative;
}

.currency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.currency-option label {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.currency-option input[type="radio"]:checked + label {
    background: #e8f5e9;
    border-color: #28a745;
    color: #28a745;
}

.currency-option label:hover {
    border-color: #28a745;
    background: #f1f8e9;
}

.currency-code {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.currency-price {
    font-size: 18px;
    color: #28a745;
}

.selected-price-display {
    text-align: center;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    margin: 20px 0;
}

.selected-price-display .label {
    display: block;
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 5px;
}

.selected-price-display .amount {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
}

.purchase-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.purchase-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
}

.purchase-note i {
    margin-right: 5px;
    color: #ffc107;
}

.unavailable-message {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.unavailable-message i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}
