* {
    box-sizing: border-box;
}

:root {
    --gold: #B8943C;
    --gold-dark: #9F7D2F;
    --dark: #303030;
    --text: #5c5c5c;
    --muted: #767676;
    --white: #ffffff;
    --soft-gold: #fff7e8;
    --line: #ececec;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(184, 148, 60, 0.25), transparent 34%),
        radial-gradient(circle at bottom right, rgba(184, 148, 60, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8f5ee 48%, #f7f7f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.container {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 32px;
    padding: 26px;
    box-shadow: 0 28px 80px rgba(48, 48, 48, 0.14);
    backdrop-filter: blur(14px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
}

.brand span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-icon {
    min-width: 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(184, 148, 60, 0.25);
}

.language-box {
    position: relative;
    min-width: 170px;
}

.language-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dark);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.arrow-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

.language-box select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    color: var(--dark);
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 12px 42px 12px 38px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.language-box select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 148, 60, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 28px;
}

h1 {
    font-size: 38px;
    line-height: 1.08;
    margin: 0 0 12px;
    color: var(--dark);
    letter-spacing: -1px;
}

p {
    font-size: 18px;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
}

.faces {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 34px 0 28px;
}

.face {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 138px;
    border: 2px solid #eeeeee;
    border-radius: 28px;
    background: #ffffff;
    cursor: pointer;
    padding: 18px 8px 16px;
    transition: all 0.22s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.055);
}

.face::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: all 0.22s ease;
    background: linear-gradient(180deg, rgba(184, 148, 60, 0.16), rgba(255, 255, 255, 0));
}

.icon-circle {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    border-radius: 22px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
}

.icon-circle i {
    font-size: 38px;
    line-height: 1;
    transition: all 0.22s ease;
}

.face small {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 13px;
    color: var(--text);
    font-weight: 900;
    line-height: 1.2;
}

.face.bad .icon-circle {
    background: rgba(217, 83, 79, 0.10);
}

.face.bad i {
    color: #d9534f;
}

.face.low .icon-circle {
    background: rgba(230, 138, 58, 0.12);
}

.face.low i {
    color: #e68a3a;
}

.face.mid .icon-circle {
    background: rgba(118, 118, 118, 0.10);
}

.face.mid i {
    color: #767676;
}

.face.good .icon-circle {
    background: rgba(79, 163, 108, 0.12);
}

.face.good i {
    color: #4fa36c;
}

.face.excellent .icon-circle {
    background: rgba(184, 148, 60, 0.14);
}

.face.excellent i {
    color: var(--gold);
}

.face:hover {
    transform: translateY(-7px);
    border-color: rgba(184, 148, 60, 0.55);
    box-shadow: 0 20px 42px rgba(184, 148, 60, 0.18);
}

.face:hover::before {
    opacity: 1;
}

.face:hover .icon-circle {
    transform: scale(1.08);
}

.face.selected {
    border-color: var(--gold);
    background: #fffaf0;
    transform: translateY(-7px);
    box-shadow:
        0 20px 46px rgba(184, 148, 60, 0.25),
        0 0 0 5px rgba(184, 148, 60, 0.13);
}

.face.selected::before {
    opacity: 1;
}

.face.selected .icon-circle {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.face.selected .icon-circle i {
    color: #ffffff;
}

.face.selected small {
    color: var(--gold-dark);
}

.comment-box {
    position: relative;
    margin-top: 4px;
}

.comment-box i {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--gold-dark);
    font-size: 17px;
}

textarea {
    width: 100%;
    min-height: 140px;
    border: 1px solid #dedede;
    border-radius: 24px;
    background: #ffffff;
    padding: 20px 20px 20px 52px;
    font-size: 16px;
    color: var(--dark);
    font-family: Arial, sans-serif;
    outline: none;
    resize: vertical;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.045);
}

textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 148, 60, 0.14);
}

textarea::placeholder {
    color: #8a8a8a;
}

.send-btn {
    width: 100%;
    margin-top: 22px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
    padding: 18px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 16px 34px rgba(184, 148, 60, 0.30);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(184, 148, 60, 0.38);
}

.send-btn i {
    margin-right: 8px;
}

.message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.message.success {
    display: block;
    background: rgba(79, 163, 108, 0.12);
    color: #2f7d4d;
}

.message.error {
    display: block;
    background: rgba(217, 83, 79, 0.12);
    color: #b23b37;
}

.domain {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.powered-by {
    margin: 16px auto 0;
    padding: 12px 14px;
    max-width: 420px;
    border-radius: 18px;
    background: rgba(184, 148, 60, 0.10);
    border: 1px solid rgba(184, 148, 60, 0.18);
    color: var(--dark);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all 0.22s ease;
}

.powered-by span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.powered-by strong {
    font-size: 14px;
    color: var(--gold-dark);
    font-weight: 900;
    text-align: center;
}

.powered-by:hover {
    background: rgba(184, 148, 60, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(184, 148, 60, 0.16);
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .container {
        padding: 22px;
        border-radius: 28px;
    }

    h1 {
        font-size: 32px;
    }

    p {
        font-size: 17px;
    }

    .faces {
        gap: 10px;
    }

    .face {
        min-height: 118px;
        border-radius: 22px;
        padding: 15px 6px 13px;
    }

    .icon-circle {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .icon-circle i {
        font-size: 32px;
    }

    .face small {
        font-size: 11.5px;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 18px;
        border-radius: 24px;
    }

    .topbar {
        margin-bottom: 28px;
    }

    .brand span {
        display: none;
    }

    .language-box {
        min-width: 150px;
    }

    h1 {
        font-size: 27px;
    }

    p {
        font-size: 15.5px;
    }

    .faces {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        margin: 26px 0 24px;
    }

    .face {
        min-height: 92px;
        border-radius: 18px;
        padding: 12px 3px 10px;
    }

    .icon-circle {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        margin-bottom: 8px;
    }

    .icon-circle i {
        font-size: 25px;
    }

    .face small {
        font-size: 9px;
    }

    textarea {
        min-height: 128px;
        font-size: 15px;
        border-radius: 20px;
        padding: 17px 16px 17px 46px;
    }

    .comment-box i {
        top: 18px;
        left: 17px;
    }

    .send-btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 19px;
    }

    .powered-by {
        padding: 11px 12px;
        border-radius: 16px;
    }

    .powered-by span {
        font-size: 11px;
    }

    .powered-by strong {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 14px;
    }

    .language-box {
        min-width: 138px;
    }

    .language-box select {
        font-size: 13px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    h1 {
        font-size: 24px;
    }

    .faces {
        gap: 5px;
    }

    .face {
        min-height: 84px;
        padding: 10px 2px 8px;
    }

    .icon-circle {
        width: 38px;
        height: 38px;
    }

    .icon-circle i {
        font-size: 22px;
    }

    .face small {
        font-size: 8.2px;
    }
}