/**
 * Contrarian Trader Member Styles
 *
 * @package ContrarianTraderMember
 */

/* ========================================
   Container & Layout
   ======================================== */
.tctm-member-area {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tctm-container {
    width: 100%;
}

/* ========================================
   Form Wrapper
   ======================================== */
.tctm-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--global-palette9, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.tctm-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.tctm-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--global-palette3, #333);
    font-family: var(--global-heading-font-family, inherit);
}

.tctm-form-header p {
    margin: 0;
    color: var(--global-palette5, #666);
    font-size: 14px;
}

/* ========================================
   Forms
   ======================================== */
.tctm-form {
    margin: 0;
}

.tctm-form-group {
    margin-bottom: 20px;
}

.tctm-form-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tctm-form-col {
    flex: 1;
    min-width: 200px;
}

.tctm-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--global-palette3, #333);
    font-size: 14px;
    font-family: var(--global-body-font-family, inherit);
}

.tctm-input,
.tctm-textarea,
.tctm-form input[type="text"],
.tctm-form input[type="email"],
.tctm-form input[type="password"],
.tctm-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--global-palette7, #ddd);
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--global-body-font-family, inherit);
    color: var(--global-palette4, #333);
    background: var(--global-palette9, #ffffff);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.tctm-textarea {
    resize: vertical;
    font-family: inherit;
}

.tctm-input:focus,
.tctm-textarea:focus {
    outline: none;
    border-color: var(--global-palette1, #2d7ff0);
    box-shadow: 0 0 0 2px rgba(45, 127, 240, 0.1);
}

.tctm-input.error {
    border-color: #f44336;
}

.required {
    color: #f44336;
}

.tctm-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--global-palette5, #666);
}

/* ========================================
   Checkbox & Radio
   ======================================== */
.tctm-checkbox-label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.tctm-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

/* ========================================
   Buttons - Kadence Theme Integration
   ======================================== */
.tctm-button,
.tctm-form button[type="submit"],
.tctm-form input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--global-heading-font-family, inherit);
}

.tctm-button-primary,
.tctm-form button[type="submit"],
.tctm-form input[type="submit"] {
    background: var(--global-palette-btn-bg, var(--global-palette3, #2d3748));
    color: var(--global-palette-btn, #ffffff);
    box-shadow: 0px 0px 0px -7px rgba(0,0,0,0);
}

.tctm-button-primary:hover,
.tctm-form button[type="submit"]:hover,
.tctm-form input[type="submit"]:hover {
    background: var(--global-palette-btn-bg-hover, var(--global-palette1, #2d7ff0));
    color: var(--global-palette-btn-hover, #ffffff);
    box-shadow: 0px 15px 25px -7px rgba(0,0,0,0.15);
}

.tctm-button-secondary {
    background: var(--global-palette5, #666);
    color: #ffffff;
}

.tctm-button-secondary:hover {
    background: var(--global-palette4, #555);
    color: #ffffff;
}

.tctm-button-danger {
    background: #dc3545;
    color: #ffffff;
    box-shadow: 0px 0px 0px -7px rgba(0,0,0,0);
}

.tctm-button-danger:hover {
    background: #c82333;
    color: #ffffff;
    box-shadow: 0px 15px 25px -7px rgba(220,53,69,0.3);
}

.tctm-button-outline,
.tctm-button.tctm-button-outline {
    background: rgba(0, 0, 0, 0) !important;
    color: #2d7ff0 !important;
    border: 1px solid #2d7ff0 !important;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 12px rgba(7, 58, 129, 0.3);
}

.tctm-button-outline:hover,
.tctm-button.tctm-button-outline:hover {
    background: #2d7ff0 !important;
    border-color: #2d7ff0 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0px 6px 20px rgba(7, 58, 129, 0.45);
}

.tctm-button-outline:active,
.tctm-button.tctm-button-outline:active {
    transform: translateY(0);
    box-shadow: 0px 2px 8px rgba(24, 32, 44, 0.25);
}

.tctm-button-outline i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tctm-button-outline:hover i {
    transform: translateX(4px);
}

.tctm-button-block {
    width: 100%;
    display: block;
}

.tctm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Links
   ======================================== */
.tctm-link {
    color: var(--global-palette1, #2d7ff0);
    text-decoration: none;
    font-weight: 500;
}

.tctm-link:hover {
    text-decoration: underline;
}

/* ========================================
   Messages
   ======================================== */
.tctm-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.tctm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tctm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tctm-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.tctm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* ========================================
   Form Footer
   ======================================== */
.tctm-form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--global-palette7, #eee);
}

.tctm-form-footer p {
    margin: 0;
    color: var(--global-palette5, #666);
    font-size: 14px;
}

.tctm-form-footer .tctm-footer-text {
    margin-bottom: 15px;
    font-weight: 500;
}

.tctm-form-footer .tctm-button {
    margin-top: 5px;
}

/* ========================================
   Dashboard
   ======================================== */
.tctm-dashboard-area {
    max-width: 1200px;
}

.tctm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--global-palette7, #eee);
}

.tctm-dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--global-palette3, #333);
}

.tctm-dashboard-content {
    display: flex;
    gap: 30px;
}

.tctm-dashboard-nav {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tctm-dashboard-main {
    flex: 1;
    background: var(--global-palette9, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* ========================================
   Navigation Menu
   ======================================== */
.tctm-nav-section {
    background: var(--global-palette9, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tctm-nav-section-title {
    margin: 0;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--global-palette5, #666);
    background: var(--global-palette8, #f5f5f5);
    border-bottom: 1px solid var(--global-palette7, #eee);
    font-family: var(--global-heading-font-family, inherit);
}

.tctm-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tctm-nav-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--global-palette7, #eee);
}

.tctm-nav-menu li:last-child {
    border-bottom: none;
}

.tctm-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--global-palette3, #333);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--global-body-font-family, inherit);
}

.tctm-nav-menu li a i,
.tctm-nav-menu li a .dashicons {
    font-size: 18px;
    width: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.tctm-nav-menu li a span {
    flex: 1;
}

.tctm-nav-menu li a:hover {
    background: var(--global-palette8, #f5f5f5);
    padding-left: 25px;
}

.tctm-nav-menu li a:hover i,
.tctm-nav-menu li a:hover .dashicons {
    opacity: 1;
}

.tctm-nav-menu li.active a {
    background: var(--global-palette-btn-bg, var(--global-palette3, #2d3748));
    color: var(--global-palette-btn, #ffffff);
    font-weight: 600;
}

.tctm-nav-menu li.active a i,
.tctm-nav-menu li.active a .dashicons {
    opacity: 1;
}

/* WordPress Menu Styling */
.tctm-wp-menu .menu-item {
    border-bottom: 1px solid var(--global-palette7, #eee);
}

.tctm-wp-menu .menu-item:last-child {
    border-bottom: none;
}

.tctm-wp-menu .menu-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--global-palette3, #333);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tctm-wp-menu .menu-item a:hover {
    background: var(--global-palette8, #f5f5f5);
    padding-left: 25px;
}

.tctm-wp-menu .menu-item.current-menu-item a {
    background: var(--global-palette8, #f5f5f5);
    color: var(--global-palette1, #2d7ff0);
    font-weight: 600;
}

/* Sub Menu Items */
.tctm-wp-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--global-palette8, #f5f5f5);
}

.tctm-wp-menu .sub-menu .menu-item a {
    padding-left: 45px;
    font-size: 14px;
}

/* ========================================
   Dashboard Overview
   ======================================== */
.tctm-dashboard-welcome {
    margin: 0 0 30px 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--global-palette3, #1A202C);
    font-family: var(--global-heading-font-family, inherit);
}

.tctm-dashboard-overview h3,
.tctm-dashboard-profile h3,
.tctm-dashboard-change-password h3,
.tctm-dashboard-trading h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--global-palette3, #333);
    font-family: var(--global-heading-font-family, inherit);
}

.tctm-quick-actions {
    margin-bottom: 30px;
}

.tctm-quick-actions .tctm-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tctm-quick-actions .tctm-action-buttons .tctm-button {
    flex: 0 0 auto;
}

/* Dashboard Grid Layout */
.tctm-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.tctm-dashboard-section {
    background: var(--global-palette9, #ffffff);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Latest Video Section */
.tctm-latest-video {
    grid-column: span 1;
}

.tctm-video-placeholder {
    background: var(--global-palette8, #f5f5f5);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tctm-video-thumbnail {
    text-align: center;
    color: var(--global-palette5, #666);
}

.tctm-video-thumbnail i {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

.tctm-video-thumbnail p {
    margin: 0;
    font-size: 14px;
    color: var(--global-palette5, #666);
}

/* Discover Membership Section */
.tctm-discover-membership {
    grid-column: span 1;
}

.tctm-video-small {
    aspect-ratio: 16/9;
    margin-bottom: 20px;
}

.tctm-membership-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tctm-membership-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tctm-membership-links li i {
    font-size: 18px;
    color: var(--global-palette1, #2d7ff0);
}

.tctm-membership-links li a {
    color: var(--global-palette3, #333);
    text-decoration: none;
    font-size: 14px;
}

.tctm-membership-links li a:hover {
    color: var(--global-palette1, #2d7ff0);
}

/* Current Time Zone Section */
.tctm-timezone {
    grid-column: span 1;
}

.tctm-time-display {
    margin: 20px 0;
}

.tctm-time-box {
    background: linear-gradient(135deg, #b3d9ff 0%, #cce7ff 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
}

.tctm-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--global-palette1, #2d7ff0);
    margin-bottom: 10px;
}

.tctm-time {
    font-size: 32px;
    font-weight: 700;
    color: var(--global-palette3, #1A202C);
}

/* Account Overview Section in Profile */
.tctm-account-overview-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--global-palette7, #eee);
}

.tctm-account-overview-section h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: var(--global-palette3, #333);
    font-family: var(--global-heading-font-family, inherit);
}

/* Responsive */
@media (max-width: 1024px) {
    .tctm-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .tctm-latest-video,
    .tctm-discover-membership,
    .tctm-timezone {
        grid-column: span 1;
    }
}

.tctm-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tctm-info-card {
    background: var(--global-palette8, #f9f9f9);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tctm-card-icon {
    font-size: 32px;
    color: var(--global-palette1, #2d7ff0);
}

.tctm-card-icon .dashicons {
    width: 40px;
    height: 40px;
    font-size: 40px;
}

.tctm-card-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--global-palette5, #666);
    font-weight: 500;
}

.tctm-card-value {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--global-palette3, #333);
}

/* ========================================
   Quick Actions
   ======================================== */
.tctm-quick-actions {
    margin-bottom: 30px;
}

.tctm-quick-actions h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--global-palette3, #333);
}

.tctm-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   Account Details
   ======================================== */
.tctm-account-details {
    margin-top: 30px;
}

.tctm-account-details h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--global-palette3, #333);
}

.tctm-details-table {
    width: 100%;
    border-collapse: collapse;
}

.tctm-details-table tr {
    border-bottom: 1px solid var(--global-palette7, #eee);
}

.tctm-details-table tr:last-child {
    border-bottom: none;
}

.tctm-details-table td {
    padding: 12px 0;
    font-size: 14px;
    color: var(--global-palette3, #333);
}

.tctm-details-table td:first-child {
    width: 30%;
    color: var(--global-palette5, #666);
}

/* ========================================
   Profile & Password Forms
   ======================================== */
.tctm-profile-info,
.tctm-password-tips {
    margin-top: 30px;
    padding: 20px;
    background: var(--global-palette8, #f9f9f9);
    border-radius: 8px;
}

.tctm-profile-info h4,
.tctm-password-tips h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--global-palette3, #333);
}

.tctm-profile-info p {
    margin: 5px 0;
    font-size: 14px;
}

.tctm-password-tips ul {
    margin: 0;
    padding-left: 20px;
}

.tctm-password-tips li {
    margin: 5px 0;
    font-size: 14px;
    color: var(--global-palette5, #666);
}

/* ========================================
   Trading Dashboard
   ======================================== */
.tctm-trading-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.tctm-integration-info,
.tctm-example-integration {
    margin-top: 30px;
    padding: 20px;
    background: var(--global-palette8, #f9f9f9);
    border-radius: 8px;
    text-align: left;
}

.tctm-integration-info h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--global-palette3, #333);
}

.tctm-integration-info ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tctm-integration-info li {
    margin: 8px 0;
    font-size: 14px;
}

.tctm-integration-info code {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* ========================================
   Logout Area
   ======================================== */
.tctm-logout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ========================================
   Loading State
   ======================================== */
.tctm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tctm-button.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .tctm-form-wrapper {
        padding: 30px 20px;
    }

    .tctm-dashboard-content {
        flex-direction: column;
    }

    .tctm-dashboard-nav {
        flex: 1;
    }

    .tctm-nav-menu {
        display: flex;
        overflow-x: auto;
    }

    .tctm-nav-menu li {
        border-bottom: none;
        border-right: 1px solid #eee;
        flex-shrink: 0;
    }

    .tctm-nav-menu li:last-child {
        border-right: none;
    }

    .tctm-nav-menu li a {
        white-space: nowrap;
    }

    .tctm-dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .tctm-form-row {
        flex-direction: column;
    }

    .tctm-form-col {
        width: 100%;
    }

    .tctm-action-buttons {
        flex-direction: column;
    }

    .tctm-action-buttons .tctm-button {
        width: 100%;
    }

    .tctm-logout-actions {
        flex-direction: column;
    }

    .tctm-logout-actions .tctm-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tctm-member-area {
        padding: 20px 10px;
    }

    .tctm-form-wrapper {
        padding: 20px 15px;
    }

    .tctm-form-header h2 {
        font-size: 24px;
    }

    .tctm-dashboard-main {
        padding: 20px;
    }

    .tctm-info-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Parsley Validation Styles
   ======================================== */
.parsley-errors-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    font-size: 13px;
}

.parsley-errors-list li {
    color: #dc3545;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.parsley-errors-list li::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: #dc3545;
}

.parsley-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.parsley-success {
    border-color: #28a745 !important;
}

input.parsley-error:focus,
textarea.parsley-error:focus,
select.parsley-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

input.parsley-success:focus,
textarea.parsley-success:focus,
select.parsley-success:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Theme color integration for validation */
.tctm-form .parsley-errors-list li {
    color: #dc3545;
}

.tctm-form .parsley-errors-list li::before {
    color: #dc3545;
}

.tctm-form .parsley-error {
    border-color: #dc3545 !important;
}

.tctm-form .parsley-success {
    border-color: #28a745 !important;
}

/* ========================================
   Pricing Section - Theme Independent
   ======================================== */
.tctm-pricing-section {
    background: transparent;
    width: 100%;
}

.tctm-pricing-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* Billing Toggle */
.tctm-billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tctm-billing-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--global-palette4, #4a5568);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tctm-billing-badge {
    display: none;
    background: #177cea;
    color: #ffffff;
    padding: 5.5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tctm-billing-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.tctm-billing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tctm-billing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.4s;
    border-radius: 30px;
}

.tctm-billing-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tctm-billing-toggle input:checked + .tctm-billing-slider {
    background-color: #0079e5;
}

.tctm-billing-toggle input:checked + .tctm-billing-slider:before {
    transform: translateX(26px);
}

/* Pricing Grid */
.tctm-pricing-grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
    margin-top: 50px;
    margin-bottom: 37px;
}

.tctm-pricing-cols-1 {
    grid-template-columns: 1fr;
}

.tctm-pricing-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tctm-pricing-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tctm-pricing-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Pricing Card */
.tctm-pricing-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 60px 30px;
    border: 1px solid #e5e9f3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin-top: 20px;
    z-index: 1;
}

/* Silver Card - Clean white card, minimal embellishment */
.tctm-pricing-card[data-plan="silver"] {
    background: #fff;
    border: 1px solid #e5e9f3;
}

/* Featured Card (Gold) - 3-5% larger, strong shadow, elevated */
.tctm-pricing-featured {
    border: 1px solid #133682;
    background: #133682;
    transform: scale(1.05);
    box-shadow: 0 2px 15px rgb(19 54 130 / 25%);
    z-index: 2;
}

/* Titanium Card (Elite) - Gradient border, subtle glow, white interior */
.tctm-pricing-elite {
    background: #fff;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #9DCC4C 0%, #29A7F0 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 32px rgba(41, 167, 240, 0.15);
}

/* Pricing Badge - Most Popular (Gold) */
.tctm-pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #177cea;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
}

/* Elite Micro-Banner (Titanium) - Top-right, subtle */
.tctm-elite-micro-banner {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #EBF7FF;
    border: 1px solid #29A7F0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #29A7F0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.tctm-elite-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* Pricing Header */
.tctm-pricing-header {
    text-align: center;
}

.tctm-pricing-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--global-palette3, #1a202c);
    margin: 0px !important;
    font-family: var(--global-heading-font-family, inherit);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tctm-pricing-featured .tctm-pricing-title {
    color: #fff;
}

.tctm-pricing-subtitle {
    font-size: 13px;
    color: var(--global-palette5, #718096);
    margin: 8px 0 0 0;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Silver subtitle - simple, clean */
.tctm-pricing-card[data-plan="silver"] .tctm-pricing-subtitle {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Gold subtitle - More descriptive, not uppercase */
.tctm-pricing-featured .tctm-pricing-subtitle {
    color: #fff;
    text-transform: none;
    font-size: 13px;
    font-weight: 500;
}

/* Titanium subtitle - Premium but subtle */
.tctm-pricing-elite .tctm-pricing-subtitle {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #29A7F0;
    font-weight: 700;
}

/* Pricing Price */
.tctm-pricing-price {
    text-align: center;
    padding: 20px 0 25px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgb(153 153 153 / 40%);
    position: relative;
}
.tctm-pricing-grid.tctm-pricing-cols-3:after {
    /*content: "";
    position: absolute;
    width: 450px;
    height: 700px;
    background: linear-gradient(90deg, #0b347f -.92%, #177cea 100%);
    opacity: 0.2;
    filter: blur(81.7851px);
    transform: rotate(63.75deg);
    left: calc(50% - 250px);
    top: calc(50% - 350px);*/
}

.tctm-price-wrapper {
    display: none;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.tctm-price-wrapper.active {
    display: flex;
}

.tctm-price-currency {
    font-size: 28px;
    font-weight: 700;
    color: #133682;
}

.tctm-price-amount {
    font-size: 56px;
    font-weight: 800;
    color: #133682);
    line-height: 1;
}

.tctm-price-period {
    font-size: 18px;
    color: var(--global-palette5, #718096);
    font-weight: 600;
}
.tctm-pricing-featured .tctm-price-currency, .tctm-pricing-featured .tctm-price-amount, .tctm-pricing-featured .tctm-price-period {
	color: #fff;
}
.tctm-price-savings {
    font-size: 13px;
    font-weight: 600;
    color: #2d7ff0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tctm-pricing-featured .tctm-price-savings {
    color: #fff;
}
/* Pricing Features */
.tctm-pricing-features-section {
    flex-grow: 1;
    margin-bottom: 15px;
}

.tctm-features-heading {
    display:none;
}

.tctm-pricing-features {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

.tctm-pricing-features li {
    position: relative;
    padding: 0px 0px 25px 45px;
    color: var(--global-palette4, #4a5568);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.tctm-pricing-featured .tctm-pricing-features li {
	color: #fff;
}
.tctm-feature-icon {
    display: flex;
    width: 30px;
    height: 30px;
    position: absolute;
    left: 0;
    top: -3px;
    padding: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    /*background: rgb(19 54 130 / 20%); */
    color: #29A7F0;
    border: 1px solid #29A7F0;
    box-sizing: border-box;
}
.tctm-pricing-featured .tctm-feature-icon {
    /*background: rgb(255 255 255 / 10%);*/
}

/* Pricing Footer */
.tctm-pricing-footer {
    margin-top: auto;
    padding-top: 16px;
    text-align: center;
}

.tctm-pricing-button {
    font-size: 14px;
    width: 100%;
}

/* Silver CTA - White background, navy border */
.tctm-pricing-card[data-plan="silver"] .tctm-pricing-button, .tctm-pricing-card[data-plan="titanium"] .tctm-pricing-button {
    background: #fff !important;
    color: #133682 !important;
    border: 1px solid #133682 !important;
}

.tctm-pricing-card[data-plan="silver"] .tctm-pricing-button:hover, .tctm-pricing-card[data-plan="titanium"] .tctm-pricing-button:hover {
    background: #133682 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(19, 54, 130, 0.2) !important;
}

/* Gold CTA - TCT Green, white text */
.tctm-pricing-featured .tctm-pricing-button {
    background: #9DCC4C !important;
    border: 1px solid #9DCC4C;
    color: #fff !important;
}

.tctm-pricing-featured .tctm-pricing-button:hover {
    background: #8ab93d !important;
    box-shadow: 0 6px 20px rgba(157, 204, 76, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* Titanium CTA - Maintains theme button styles */
.tctm-pricing-elite .tctm-pricing-button {
    background: var(--global-palette-btn-bg, #133682) !important;
    color: #ffffff !important;
}

.tctm-pricing-elite .tctm-pricing-button:hover {
    background: var(--global-palette-btn-bg-hover, #1e5bb8) !important;
    box-shadow: 0 4px 12px rgba(19, 54, 130, 0.3) !important;
    color: #ffffff !important;
    text-decoration: none;
}

.tctm-pricing-footer .tctm-cta-subtitle {
    color: #fff;
    margin-top: 15px;
}

.tctm-cta-subtitle {
    margin-top: 12px;
    font-size: 13px;
    color: var(--global-palette5, #718096);
    font-weight: 600;
    font-style: italic;
}

/* Fallback Message */
.tctm-pricing-fallback {
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tctm-fallback-message {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--global-palette9, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--global-palette7, #e2e8f0);
}

.tctm-fallback-message h3 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--global-palette3, #2d3748);
    font-family: var(--global-heading-font-family, inherit);
}

.tctm-fallback-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--global-palette5, #718096);
}

/* Responsive Design */
@media (max-width: 992px) {
    .tctm-pricing-cols-3,
    .tctm-pricing-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Maintain Gold's prominence on tablet */
    .tctm-pricing-featured {
        transform: scale(1.03);
    }

    .tctm-pricing-featured:hover {
        transform: scale(1.03) translateY(-8px);
    }
}

@media (max-width: 768px) {

    .tctm-billing-toggle-wrapper {
        margin-bottom: 40px;
        gap: 10px;
    }

    .tctm-billing-label {
        font-size: 14px;
    }

    .tctm-pricing-cols-2,
    .tctm-pricing-cols-3,
    .tctm-pricing-cols-4 {
        grid-template-columns: 1fr;
    }

    .tctm-pricing-card {
        padding: 30px 24px;
    }

    .tctm-pricing-title {
        font-size: 26px;
    }

    .tctm-price-amount {
        font-size: 48px;
    }

    /* On mobile, Gold still has slight prominence but not as scaled */
    .tctm-pricing-featured {
        transform: scale(1.02);
        margin: 20px 0;
    }

    .tctm-pricing-featured:hover {
        transform: scale(1.02) translateY(-4px);
    }

    /* Elite micro-banner adjustments for mobile */
    .tctm-elite-micro-banner {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .tctm-elite-icon {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   Password Toggle
   ======================================== */
.tctm-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tctm-password-wrapper .tctm-input {
    padding-right: 45px;
}

.tctm-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--global-palette5, #666);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.tctm-password-toggle:hover {
    color: var(--global-palette1, #2d7ff0);
}

.tctm-password-toggle:focus {
    outline: 2px solid var(--global-palette1, #2d7ff0);
    outline-offset: 2px;
    border-radius: 4px;
}

.tctm-password-toggle i {
    font-size: 16px;
    pointer-events: none;
}