/* Main Container */
#fivesim-app {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    border: 1px solid #f0f0f0;
}

/* Progress Bar */
.fivesim-progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 25px;
    overflow: hidden;
}

.fivesim-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.2);
}

/* Balance Section */
.fivesim-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.fivesim-balance-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

.fivesim-balance-amount {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.button-small {
    font-size: 0.85em;
    text-decoration: none;
    background: #eef2f7;
    color: #3498db;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.button-small:hover {
    background: #e1e8f0;
    color: #2980b9;
}

/* Form Groups */
.fivesim-group {
    margin-bottom: 24px;
}

.fivesim-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a4a4a;
    font-size: 0.9em;
}

.fivesim-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eef2f7;
    border-radius: 10px;
    background: #fff;
    font-size: 1em;
    color: #333;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
}

.fivesim-group select:hover {
    border-color: #dce4ec;
}

.fivesim-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

.fivesim-group select:disabled {
    background-color: #f9f9f9;
    color: #999;
    cursor: not-allowed;
}

/* Price Display */
.fivesim-price-display {
    text-align: right;
    margin-bottom: 24px;
    font-size: 1.1em;
    color: #666;
}

.fivesim-price-display span {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2em;
}

/* Main Button */
#fivesim-buy-btn {
    width: 100%;
    padding: 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

#fivesim-buy-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

#fivesim-buy-btn:disabled {
    background: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Order Container */
#fivesim-order-container {
    margin-top: 30px;
    padding: 24px;
    border-radius: 12px;
    background: #f8fbfd;
    border: 1px solid #eef2f7;
}

#fivesim-order-container h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

#fivesim-order-container h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
}

.fivesim-order-details p {
    margin: 12px 0;
    font-size: 0.95em;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fivesim-order-details span {
    font-weight: 600;
    color: #1a1a1a;
}

#fivesim-code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 1.4em;
    color: #2c3e50;
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    letter-spacing: 2px;
}

/* Action Buttons */
.fivesim-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.fivesim-actions button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
}

.button-primary {
    background: #2ecc71;
    color: white;
}

.button-primary:hover {
    background: #27ae60;
}

.button-secondary {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #fadbd8 !important;
}

.button-secondary:hover {
    background: #fdecea;
}

/* Messages */
#fivesim-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.95em;
    text-align: center;
    display: none;
}

.fivesim-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.fivesim-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}