.header { background: #075069 !important; box-shadow: 0 2px 12px rgba(11, 54, 70, .16); }
.partner-page { background: #eef3f5; color: #1f2d3d; }
.partner-container { width: 1200px; margin: 0 auto; }
.partner-hero { padding: 0 0 36px; box-sizing: border-box; background: #eef3f5; }
.partner-hero-layout { display: grid; grid-template-columns: 36% 64%; gap: 0; align-items: stretch; overflow: hidden; box-sizing: border-box; border: 1px solid #dfe8eb; border-radius: 12px; background: #fff; box-shadow: 0 16px 42px rgba(29, 67, 79, .12); }
.partner-hero-copy { min-width: 0; padding: 36px 30px; box-sizing: border-box; color: #fff; background: linear-gradient(145deg, #00819a 0%, #075069 62%, #063c51 100%); }
.partner-hero h1 { margin: 12px 0 15px; font-size: 30px; line-height: 1.35; }
.partner-hero p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.7; }
.partner-kicker { color: rgba(255, 255, 255, .68) !important; font-size: 11px !important; letter-spacing: 3px; }
.hero-rewards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.hero-rewards div { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 6px; background: rgba(255, 255, 255, .08); }
.hero-rewards small { display: block; margin-bottom: 3px; color: rgba(255, 255, 255, .7); font-size: 12px; }
.hero-rewards strong { display: block; font-size: 24px; line-height: 1; }
.hero-rewards em { margin-left: 5px; font-size: 12px; font-style: normal; font-weight: normal; }
.hero-actions { margin-top: 20px; font-size: 0; line-height: 0; }
.hero-actions button { display: none; }
.hero-actions a { display: inline-flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 24px; text-decoration: none; }
.hero-actions a::after { margin-left: 6px; content: "›"; font-size: 18px; line-height: 1; }
.partner-section { padding: 44px 0; }
.partner-intro { padding-top: 124px; }
.partner-section h2 { margin: 0 0 24px; text-align: center; font-size: 26px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps div { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; padding: 14px 16px; border: 1px solid #e5eaed; border-radius: 6px; background: #fff; }
.steps span { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: #007892; font-size: 13px; line-height: 26px; text-align: center; }
.steps strong { font-size: 16px; line-height: 26px; }
.steps p { margin: 3px 0 0; color: #687782; font-size: 13px; line-height: 1.5; }
.form-card { box-sizing: border-box; min-width: 0; padding: 22px 28px 26px; color: #1f2d3d; background: #fff; }
.form-tabs { display: flex; justify-content: center; gap: 24px; border-bottom: 1px solid #e6eaed; }
.form-tabs button { padding: 11px 24px; border: 0; border-bottom: 3px solid transparent; color: #7b8790; background: transparent; font-size: 16px; cursor: pointer; }
.form-tabs button.active { border-bottom-color: #007892; color: #007892; }
.partner-form { display: none; max-width: 720px; margin: 18px auto 0; }
.partner-form.active { display: block; }
.partner-form h3 { margin: 16px 0 12px; color: #007892; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid label { display: block; }
.form-grid label span { display: block; margin-bottom: 5px; color: #52616b; font-size: 13px; }
.form-grid label .field-title { display: flex; align-items: center; }
.field-title i { margin-right: 3px; color: #d94f4f; font-style: normal; }
.field-title b, .consent-title b { font-weight: normal; }
.field-error { margin-left: auto; color: #d94f4f; font-size: 12px; font-style: normal; }
.form-grid .field-invalid { border-color: #d94f4f; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; box-sizing: border-box; border: 1px solid #d8dfe3; border-radius: 4px; padding: 8px 10px; color: #273842; background: #fff; font-size: 14px; line-height: 1.4; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #007892; outline: none; }
.form-grid textarea { resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.verification-field { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.verification-field span { grid-column: 1 / -1; }
.verification-field .send-code { min-width: 90px; font-size: 12px; padding: 8px 10px; border: 1px solid #007892; border-radius: 4px; color: #007892; background: #fff; cursor: pointer; }
.verification-field .send-code:disabled { opacity: .6; cursor: not-allowed; }
.consent { display: flex; align-items: center; margin-top: 14px; color: #a8b0b5; font-size: 13px; }
.consent.checked { color: #1f2d3d; }
.consent input { vertical-align: middle; }
.consent-title { display: flex; flex: 1; align-items: center; margin-left: 3px; }
.submit-button { display: block; min-width: 160px; margin-top: 16px; padding: 10px 24px; border: 0; border-radius: 4px; color: #fff; background: #007892; font-size: 14px; cursor: pointer; }
.submit-button:disabled { opacity: .6; cursor: not-allowed; }
.form-message { min-height: 20px; margin-bottom: 0; color: #d94f4f; font-size: 14px; }
.form-message.success { color: #1b8c63; }
.partner-page-message { display: flex; position: fixed; z-index: 12000; top: 92px; left: 50%; width: calc(100% - 32px); max-width: 420px; box-sizing: border-box; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border: 1px solid #f1b8b8; border-radius: 8px; color: #b93636; background: #fff; box-shadow: 0 10px 30px rgba(45, 21, 21, .16); font-size: 14px; line-height: 1.5; opacity: 0; transform: translate(-50%, -10px); transition: opacity .2s ease, transform .2s ease; text-align: center; }
.partner-page-message::before { display: grid; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; color: #fff; background: #d95c5c; content: '!'; font-size: 12px; font-weight: bold; line-height: 1; place-items: center; }
.partner-page-message.open { opacity: 1; transform: translate(-50%, 0); }
.partner-page-message.success { border-color: #a9ddc8; color: #137453; box-shadow: 0 10px 30px rgba(19, 116, 83, .16); }
.partner-page-message.success::before { background: #20a474; content: '✓'; }

@media screen and (max-width: 768px) {
    .partner-container { width: auto; margin: 0 12px; }
    .partner-hero { padding: 0 0 20px; }
    .partner-hero-layout { grid-template-columns: 1fr; border-radius: 10px; }
    .partner-hero-copy { padding: 19px 18px 17px; }
    .partner-hero h1 { margin: 7px 0 8px; font-size: 23px; line-height: 1.3; }
    .partner-hero p { font-size: 13px; line-height: 1.55; }
    .partner-kicker { font-size: 9px !important; letter-spacing: 2px; }
    .hero-rewards { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .hero-rewards div { padding: 8px 10px; }
    .hero-rewards small { font-size: 11px; }
    .hero-rewards strong { font-size: 18px; }
    .hero-rewards em { font-size: 10px; }
    .hero-actions { margin-top: 10px; }
    .hero-actions a { font-size: 12px; line-height: 20px; }
    .partner-section { padding: 32px 0; }
    .partner-intro { padding-top: 92px; }
    .partner-section h2 { font-size: 23px; }
    .steps, .form-grid { grid-template-columns: 1fr; }
    .form-card { margin: 0; padding: 15px 14px 20px; }
    .form-tabs { gap: 0; }
    .form-tabs button { flex: 1; padding: 10px 8px; font-size: 14px; }
    .partner-form { margin-top: 14px; }
    .partner-form h3 { margin: 14px 0 10px; }
    .form-grid .full { grid-column: auto; }
    .verification-field { grid-template-columns: minmax(0, 1fr) auto; }
    .submit-button { width: 100%; margin-top: 14px; }
}

.partner-page { overflow: hidden; background: #f5f7f8; }
.partner-hero { position: relative; padding: 80px 0 0; overflow: hidden; background-color: #07546a; background-image: linear-gradient(90deg, rgba(7, 84, 106, .96) 0%, rgba(7, 80, 105, .88) 28%, rgba(7, 80, 105, .58) 52%, rgba(6, 59, 80, .18) 78%, rgba(6, 59, 80, .06) 100%), url("../../img/partner-handshake-banner.jpg"); background-position: center, center; background-repeat: no-repeat; background-size: 100% 100%, auto 100%; }
.partner-banner { display: grid; position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) 340px; width: 1200px; max-width: 100%; margin: 0 auto; overflow: visible; min-height: 480px; align-items: center; background: transparent; }
.partner-banner::before, .partner-banner::after { display: none; }
.partner-banner .partner-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 58px 72px 58px 0; background: none; }
.partner-banner .partner-hero-copy h1 { max-width: 680px; margin: 14px 0 18px; font-size: 44px; letter-spacing: -1px; }
.partner-banner .partner-hero-copy h1 strong { color: #f6d989; font-weight: bold; }
.partner-banner .partner-hero-copy > p:not(.partner-kicker) { max-width: 650px; font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.hero-actions button { display: inline-flex; min-width: 118px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid #f3d58b; border-radius: 5px; color: #075069; background: #f3d58b; font-size: 14px; line-height: 20px; cursor: pointer; }
.hero-actions button.secondary { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.hero-actions button.link-button { min-width: auto; border-color: transparent; color: rgba(255, 255, 255, .9); background: transparent; }
.partner-section { padding: 0 0 68px; }
.partner-intro { padding-top: 68px; background: #fff; }
.partner-section h2 { margin-bottom: 8px; color: #173945; font-size: 30px; }
.section-subtitle { margin: 0 0 30px; color: #7c8b91; text-align: center; }
.steps { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.steps div { grid-template-columns: 50px 1fr; min-height: 82px; padding: 24px; border: 1px solid #e6edef; border-radius: 10px; box-shadow: 0 8px 24px rgba(33, 74, 86, .06); }
.steps span { width: 44px; height: 44px; color: #086c7b; background: #e4f2f3; font-size: 17px; line-height: 44px; }
.steps strong { color: #254651; font-size: 17px; line-height: 28px; }
.steps p { color: #78868c; }
.reward-section { background: #eef1f4; }
.reward-table-wrap { overflow: auto; border: 1px solid #dce2e5; border-radius: 13px; background: #fff; box-shadow: 0 14px 32px rgba(33, 57, 66, .06); }
.reward-table { width: 100%; min-width: 1000px; border-collapse: collapse; color: #182d35; font-size: 15px; }
.reward-table th, .reward-table td { padding: 21px 18px; border-right: 1px solid #e6eaec; border-bottom: 1px solid #e6eaec; line-height: 1.65; text-align: left; }
.reward-table thead th { color: #143d4b; background: #fafbfc; font-size: 16px; white-space: nowrap; }
.reward-table tbody th { width: 120px; color: #0a5368; font-size: 17px; white-space: nowrap; }
.reward-table tr:last-child th, .reward-table tr:last-child td { border-bottom: 0; }
.reward-table th:last-child, .reward-table td:last-child { border-right: 0; }
.reward-table .reward-money { color: #a96b0b; font-size: 18px; font-weight: bold; white-space: nowrap; }
.reward-note { margin: 14px 0 0; color: #7a878c; font-size: 12px; text-align: right; }
.partner-form-section { background: #fff; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-heading-row h2, .section-heading-row .section-subtitle { text-align: left; }
.section-heading-row .section-subtitle { margin: 0; }
.partner-form-section .partner-hero-layout { grid-template-columns: 32% 68%; border-radius: 12px; }
.form-side-copy { padding: 54px 38px; color: #fff; background: linear-gradient(150deg, #087284 0%, #07475f 100%); }
.form-side-copy h2 { margin: 18px 0; color: #fff; font-size: 28px; line-height: 1.45; text-align: left; }
.form-side-copy > p:last-child { color: rgba(255, 255, 255, .74); font-size: 14px; line-height: 1.8; }
.partner-modal { display: none; position: fixed; z-index: 10000; inset: 0; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.partner-modal.open { display: flex; }
.partner-modal-mask { position: absolute; inset: 0; background: rgba(4, 28, 38, .58); backdrop-filter: blur(3px); }
.partner-login-dialog, .withdraw-dialog, .contact-dialog { position: relative; z-index: 1; width: 420px; max-width: 100%; box-sizing: border-box; padding: 38px 42px; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(6, 41, 53, .3); }
.partner-login-dialog h2, .withdraw-dialog h2, .contact-dialog h2 { margin: 7px 0 8px; color: #153a47; font-size: 28px; }
.login-kicker { margin: 0; color: #087489; font-size: 11px; letter-spacing: 2px; }
.login-description { margin: 0 0 24px; color: #7a898f; font-size: 13px; }
.modal-close { position: absolute; top: 14px; right: 16px; padding: 5px; border: 0; color: #7e8b90; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.partner-login-dialog form label, .withdraw-dialog form label { display: block; margin-top: 16px; color: #48616a; font-size: 13px; }
.partner-login-dialog form label > span:first-child, .withdraw-dialog form label > span:first-child { display: block; margin-bottom: 7px; }
.partner-login-dialog input, .withdraw-dialog input { width: 100%; height: 42px; box-sizing: border-box; padding: 0 12px; border: 1px solid #d8e0e3; border-radius: 5px; outline: 0; }
.partner-login-dialog input:focus, .withdraw-dialog input:focus { border-color: #087489; box-shadow: 0 0 0 3px rgba(8, 116, 137, .08); }
.password-input { display: flex; position: relative; }
.password-input input { padding-right: 46px; }
.password-toggle { display: flex; position: absolute; top: 0; right: 0; width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0; border: 0; color: #72858c; background: transparent; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus { color: #087489; outline: 0; }
.password-eye { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.password-eye-off { display: none; }
.password-toggle.password-visible .password-eye-on { display: none; }
.password-toggle.password-visible .password-eye-off { display: block; }
.login-error { min-height: 20px; margin: 9px 0 0; color: #d94f4f; font-size: 12px; }
.login-submit { width: 100%; height: 43px; margin-top: 10px; border: 0; border-radius: 5px; color: #fff; background: #087489; font-size: 14px; line-height: 1.4; cursor: pointer; }
.forgot-password-trigger, .back-to-login { display: block; margin: 12px auto 0; padding: 0; border: 0; color: #087489; background: transparent; font-size: 13px; cursor: pointer; }
.forgot-password-trigger { margin-right: 0; }
.verification-input { display: flex; gap: 8px; }
.verification-input input { flex: 1; min-width: 0; }
.send-verification-code { width: 96px; border: 1px solid #087489; border-radius: 5px; color: #087489; background: #fff; font-size: 12px; cursor: pointer; }
.send-verification-code:disabled, .login-submit:disabled { cursor: not-allowed; opacity: .65; }
.partner-modal-open { overflow: hidden; }

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .header.mobile-header, .header.mobile-header .header_wrapper, .header.mobile-header .header_left, .header.mobile-header .header_left a, .header.mobile-header .header_rght { height: 64px; }
    .header.mobile-header { padding: 0 24px; }
    .header.mobile-header .header_left .header_logo { height: 28px; }
    .header.mobile-header .header_phone { font-size: 16px; }
    .header.mobile-header .header_rght .nav_btn { height: 30px; }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
    .partner-container { width: auto; margin: 0 20px; }
    .partner-banner { width: auto; margin: 0 20px; }
    .partner-banner .partner-hero-copy { padding-right: 36px; }
    .partner-banner .partner-hero-copy h1 { font-size: 36px; }
    .partner-form-section .partner-hero-layout { grid-template-columns: 30% 70%; }
    .form-side-copy { padding: 40px 24px; }
    .form-card { padding: 22px 24px 26px; }
}

@media screen and (max-width: 768px) {
    .partner-hero { padding: 80px 0 24px; background-image: linear-gradient(90deg, rgba(7, 84, 106, .96) 0%, rgba(7, 80, 105, .9) 58%, rgba(6, 59, 80, .58) 100%), url("../../img/partner-handshake-banner.jpg"); background-position: center, center; background-size: 100% 100%, auto 100%; }
    .partner-banner { grid-template-columns: 1fr; width: auto; margin: 0 12px; overflow: visible; min-height: 0; }
    .partner-banner::before, .partner-banner::after { display: none; }
    .partner-banner .partner-hero-copy { padding: 30px 12px 22px; }
    .partner-banner .partner-hero-copy h1 { margin: 10px 0; font-size: 29px; }
    .partner-banner .partner-hero-copy > p:not(.partner-kicker) { font-size: 13px; }
    .hero-actions { flex-wrap: wrap; margin-top: 18px; }
    .hero-actions button { min-width: 0; padding: 8px 13px; font-size: 12px; }
    .partner-section, .partner-intro { padding: 42px 0; }
    .partner-form-section{
        padding-top:0px;
    }
    .partner-section h2 { font-size: 23px; }
    .section-subtitle { margin-bottom: 20px; font-size: 13px; line-height: 1.6; }
    .steps { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
    .steps div { min-height: 0; padding: 16px; }
    .reward-table th, .reward-table td { padding: 14px 12px; font-size: 13px; }
    .reward-note { line-height: 1.6; text-align: left; }
    .section-heading-row { align-items: flex-start; }
    .partner-form-section .partner-hero-layout { grid-template-columns: 1fr; }
    .form-side-copy { padding: 26px 22px; }
    .form-side-copy h2 { font-size: 22px; }
    .partner-login-dialog, .withdraw-dialog, .contact-dialog { padding: 30px 22px 24px; }
}
