:root {
    --bg-dark: #363636;
    --orange-primary: #ff7337;
    --orange-dark: #e25822; /* for the coupon left bg */
    --blue-fb: #1877f2;
    --green-success: #10b981;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #dddddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Block 1: Header / Input */
.card-header-orange {
    background-color: var(--orange-primary);
    color: white;
    text-align: center;
    padding: 20px 15px;
}

.card-header-orange h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-header-orange p {
    font-size: 14px;
    opacity: 0.9;
}

.card-body {
    padding: 15px 20px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    margin-bottom: 15px;
    background-color: #fff;
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    border-radius: 4px 0 0 4px;
    color: var(--text-main);
}

.input-wrapper input::placeholder {
    color: #999;
}

.btn-paste {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 0 15px;
    height: 44px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-paste:hover {
    background: #f5f5f5;
}

.btn-clear {
    position: absolute;
    right: 80px;
    background: none;
    border: none;
    color: #999;
    padding: 10px;
    cursor: pointer;
}

.btn-create {
    width: 100%;
    background-color: var(--orange-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-create:hover {
    background-color: #e66831;
}

/* Block 2: Usage & Coupons */
.usage-header {
    text-align: center;
    color: var(--blue-fb);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.usage-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 25px;
}

.coupon-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.best-choice-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background-color: #ff8a65;
    color: white;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.coupon {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.coupon-left {
    background-color: var(--orange-dark);
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px;
    position: relative;
    border-right: 1px dashed rgba(0,0,0,0.1);
}

/* Jagged edge on the left */
.coupon-left::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 8px;
    background-image: radial-gradient(circle at 0 50%, transparent 4px, var(--orange-dark) 5px);
    background-size: 8px 12px;
    background-repeat: repeat-y;
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: var(--blue-fb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 8px;
}

.brand-name {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.coupon-right {
    flex: 1;
    padding: 15px;
    position: relative;
}

.coupon-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.coupon-min {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.coupon-badge {
    display: inline-block;
    border: 1px solid var(--orange-primary);
    color: var(--orange-primary);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 12px;
}

.progress-container {
    width: 80%;
    height: 4px;
    background-color: #eeeeee;
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #ffbca4; 
}

.coupon-footer {
    font-size: 13px;
    color: var(--text-muted);
}

.condition-link {
    color: var(--blue-fb);
    text-decoration: none;
}

.coupon-check {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: var(--orange-primary);
}

.action-center {
    display: flex;
    justify-content: center;
}

.btn-fb-post {
    background-color: var(--orange-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-fb-post:hover {
    background-color: #e66831;
}

/* Block 3: Contact & Support */
.text-center {
    text-align: center;
}

.support-title {
    color: var(--blue-fb);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.support-buttons button {
    background: white;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-zalo {
    border: 1px solid var(--blue-fb);
    color: var(--blue-fb);
}

.btn-zalo:hover {
    background: var(--blue-fb);
    color: white;
}

.btn-support {
    border: 1px solid var(--green-success);
    color: var(--green-success);
}

.btn-support:hover {
    background: var(--green-success);
    color: white;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333333;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 500px) {
    .support-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .input-wrapper input {
        font-size: 12px;
    }
    .coupon-title {
        font-size: 15px;
    }
}
