.sfvg-wrapper {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sfvg-header {
    background: linear-gradient(90deg, #f53d2d, #ff6633);
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sfvg-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.sfvg-body {
    padding: 25px;
}

.sfvg-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sfvg-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.sfvg-input-row input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.sfvg-input-row input:focus {
    border-color: #ee4d2d;
}

.sfvg-input-row button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}

.sfvg-input-row button:hover {
    background: #e9e9e9;
    color: #ee4d2d;
}

.sfvg-btn-primary {
    width: 100%;
    padding: 14px;
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.sfvg-btn-primary:hover {
    background: #d73d1f;
}

.sfvg-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sfvg-hidden {
    display: none !important;
}

/* Loading State */
#sfvg-loading {
    text-align: center;
    padding: 30px 0;
}

.sfvg-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ee4d2d;
    border-radius: 50%;
    animation: sfvg-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes sfvg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sfvg-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.sfvg-progress-fill {
    height: 100%;
    width: 0%;
    background: #ee4d2d;
    transition: width 1s linear;
}

.sfvg-countdown {
    font-size: 16px;
    color: #666;
}

.sfvg-countdown strong {
    color: #ee4d2d;
    font-size: 20px;
}

/* Result State */
#sfvg-result {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed #eee;
    text-align: center;
}

.sfvg-product-info {
    background: #fff8f6;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffddd6;
    margin-bottom: 20px;
    color: #ee4d2d;
    font-weight: 600;
    font-size: 15px;
}

.sfvg-instructions {
    margin-bottom: 25px;
    color: #444;
    line-height: 1.5;
}

.sfvg-instructions h3 {
    color: #28a745;
    margin-top: 0;
}

.sfvg-btn-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1877F2;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.2s;
}

.sfvg-btn-fb:hover, .sfvg-btn-fb:active, .sfvg-btn-fb:focus {
    background: #166fe5;
    color: white;
    text-decoration: none;
}

.sfvg-fallback-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sfvg-fallback-link p {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.sfvg-fallback-link input {
    width: calc(100% - 70px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 12px;
}

.sfvg-fallback-link button {
    width: 60px;
    padding: 10px 0;
    background: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Coupon List Styles */
.sfvg-coupons-wrapper {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sfvg-coupons-title {
    text-align: center;
    color: #ee4d2d;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.sfvg-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sfvg-coupon-card {
    display: flex;
    align-items: stretch;
    border: 1px solid #ffd8d0;
    border-radius: 8px;
    overflow: hidden;
    background: #fffafa;
}

.sfvg-coupon-main {
    flex: 1;
    padding: 15px;
    border-right: 2px dashed #ffbdae;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sfvg-coupon-code {
    font-size: 18px;
    font-weight: bold;
    color: #ee4d2d;
    cursor: pointer;
    background: #fff;
    border: 1px dashed #ee4d2d;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.sfvg-coupon-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.sfvg-btn-copy {
    width: 90px;
    background: #ee4d2d;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.sfvg-btn-copy:hover {
    background: #d73d1f;
}
